Hello, in this video, I will talk about a new feature called method validation. What is method validation is the entity object you can write your own custom validation method that you can you can validate is a specific entity object attribute or you can add a validation in the whole entity object level. So, if you want to write some custom validation using Java code, like for example, if you want to, if the salary is greater than something you want the department to be between some value only you can rise this custom position is the entity level. If, for example, the user name if the first name and the last name is equal to each other Other and this is already exist in some other department you should validate you should fire validate arrow or you can add validation in the entity object attribute level itself. Like for example, the salary should be greater than one or less than something So, you can write your own custom validation in the entity object table, we will show you how we can do that.
So, the steps to do this, you should open your entity object and select business rules that is the entity object. Second thing you can add validation in a specific attribute or is the entity level. To do that, you can right click over the entity validator or the attribute then select a new validator from the new validator window you can select measure type equal to method, then you write your error message in the failure handling tab go to entity embed Java class and write your code in the generated method. This generated method should return true or false. If this method returns true, so the validation is passed successfully, but if you want to fire an error message you should make this message to return false. So, this is called message validation.
This is validation you can edit in the entity object driven is entity object you can validate the whole entity object or you can validate a specific attribute Nicky's to video I will go to the developer and create application and I will show you how you can create your own method validation. So see you when you can see it. You