Entity with @Column length over 255 characters

Since the default is 255, how would you specify an "infinite" length to store information like huge text? It doesn't have to be vendor specific, like the columnDefinition property.

+3


source to share


1 answer


Try "text" (lob) http://www.postgresql.org/docs/8.0/static/datatype-character.html



@Lob
@Type(type = "org.hibernate.type.TextType")

      

+5


source







All Articles