Annotations that start with @ followed by an ID (validator name), and that are used on object attributes are validator annotations. The ID value must be the same as any validator that is defined in the application:
object Person
{
@FirstnameValidator("validr.msg.fname")
string fname;
@SurnameValidator("validr.msg.sname")
string sname;
}
Add Comment