views:

84

answers:

0

Mapping an EMF model via Teneo/Hibernate works great. The default of mapping a Java String to MySQL results in the creation of a VARCHAR(255) column. This is too small for some entries.

I found out that the annotation @Column(length=4096) is what should help me out. But I cannot figure out where to append it. I tried the interface and implementation of the generated class, the getter in the generated Package class but no success.

Now where do I have to specify the annotation so that on a schema update the column length is increased?