Hi,

Is it possible to add a hibernate validator or a custom validator to a 
specific column of a table using Jooq.
The entities are generated via CodeGen.

for ex. 

A certain field is only supposed to have safe html tags. ( 
https://docs.jboss.org/hibernate/validator/4.2/api/org/hibernate/validator/constraints/SafeHtml.html
 )
Is it possible to annotate that field with Validator functions.

Consider a "Book" Table. "Title" is a property of the Book Table.
Title is supposed to have only safeHtml. 

like e.g.

BookRecord.java 

@SafeHtml
public String setTitle(final String title)
{
}


Is there a way to do this via some settings in Codegen xml or any other 
way. Looking for some direction regarding this.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jooq-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/a0ce661d-4e2b-43f0-a95c-14976929277e%40googlegroups.com.

Reply via email to