« Return to Thread: validation with annotation

Re: validation with annotation

by xianwinwin :: Rate this Message:

Reply to Author | View in Thread

Thanks Ealden, this was very helpful!

I tried that and it works fine.

Question, say I wish to check for a date, so far I've been doing it this way:
example

private Date delta;

        @TypeConversion(converter="com.utilities.conversion.DateTypeConversion")
        public void setDelta(Date delta)
        {
                this.delta = delta;
        }

Obviously the I created the converter. How can I incorporate this TypeConversion into the Action Annotation (say to field registration.dob)?

 @Validations(...what comes here.???...)
public String save()
{
   //some code
}


Thank you!

 « Return to Thread: validation with annotation