Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

How to annotate in JPA for a text column with string size 65535 ?

$
0
0
Hello,

In a JPA enviroment, how to annotate a column that is supposed to receive text strings of up to 65535 characters ?

I have an issue with using the following annotation for the column profile:

@Lob
@Column(columnDefinition = "TEXT", length = 65535)
private String profile;

It works fine on MySQL and on H2 but not on my HSQLDB 2.2.9

I wonder how to specify a string of size 65535 in a JPA HSQLDB environment.

I'm using hibernate-jpa-2.0-api 1.0.1.Final and hibernate-annotations 3.5.6-Final and hsqldb 2.2.9 and spring-data-jpa 1.3.0.RELEASE

Viewing all articles
Browse latest Browse all 13329

Trending Articles