Fagner Brack
Fagner Brack

Reputation: 2403

Entity with @Column length greater than 255 characters

Since the default is 255 how would I specify an "infinite" length to hold information such as a huge text? It should not be a vendor specific solution such as the "columnDefinition" property.

Upvotes: 3

Views: 2949

Answers (1)

twillouer
twillouer

Reputation: 1178

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

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

Upvotes: 6

Related Questions