I am loving JOOQ! I have a question regarding code generation. I was trying
to write a generator which would add the rest of the JSR-303 validation
annotations based on common patterns in my table definitions.
For example, in one column (I'm using PostgreSQL):
name varchar(32) NOT NULL CHECK (name ~* '^[a-zA-Z0-9_]+$'),
would result in:
@javax.validation.constraints.NotNull
@javax.validation.constraints.Size(max = 32)
@javax.validation.constraints.Pattern(regex="^[a-zA-Z0-9_]+$")
public java.lang.String getName() {
return (java.lang.String) getValue(1);
}
for the property. However, I cannot see how to access the constraints from
the ColumnDefinition. Is it possible to access this information?
Thanks in Advance,
Dave
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.