Tag Archives: Groovy

ADF: Validate attribute value based on other entity’s attribute (Using Accessor).

Sometimes we need to validate attribute based on other entity’s attribute. In this post I’m using HR schema, there are master detail relationship between Jobs and Employees table. So when you will create Entity objects using these tables, association will create automatically using foreign key relationship or you can create it yourself. As you can see in following image relationship ... Read More »

Validation in ADF Application (Using Groovy Expression)

ADF support Groovy scripting language, allowing groovy expression to be used in attribute validation. So in this tutorial I will add same validation previously (Validation in ADF Application (Using EntityImpl’s Method)) using java Method but this time Groovy Script. Select Salary Attribute in Employees entity and go to validation tab. Then click on “Green Plus” icon to add new validation ... Read More »