[jboss-user] [EJB 3.0] - How to set default mapping to TEXT instead of VARCHAR(255)

matt10 do-not-reply at jboss.com
Tue Aug 1 16:57:16 EDT 2006


How do I set the default mapping of entity bean fields of type String to VARCHAR or TEXT instead of VARCHAR(255) on PostgreSQL and MySQL databases?
I do not want an arbitrary 255 char limit to the length of a varchar string.

I read a post which suggested using an annotation to set the @Length to 256 or greater which makes it use a text field, but I do not want to declare this on every string field.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962289#3962289

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962289



More information about the jboss-user mailing list