Simple. ;-)
The annotation Lob has no attribute 'type'. You could only use "@Lob".
But I'm not sure what do you wan't. Combining LOB with a list makes no
sense (at last to me ...).
If you use JPA and Hibernate as implementation, this may help
regards,
Robert
--
Robert Magnus
akquinet tech@spree GmbH
Bülowstraße 66, D-10783 Berlin
Tel. +49 (0)30 235 520 - 44 Fax. +49 (0)30 217 520 - 12
Geschäftsführung: Martin Weber, Dr. Torsten Fink
Amtsgericht Berlin-Charlottenburg HRB 86780 B
USt.-Id. Nr.: DE 225 964 680
Am 27.07.2011 21:50, schrieb drewcimino:
> From
> http://www.playframework.org/documentation/1.2.2/cheatsheet/model
>
> @Lob(fetch=[LAZY, EAGER], type=[BLOB,CLOB]) Defines this field as
> being stored as a large object
I think, this is a bug. As far as I just check, play uses JPA2 with
hibernate as implementation and there is no attribute "type" for the
annotation Lob.
> In my database, my field keeps getting automatically set to type
> 'tinyblob'. Because of this, I keep getting data truncation errors,
> and I have to keep changing the field to 'longblob' myself every
> time rebuild my database.
Have you tried to use the @Column-Annotation? As shown in
http://www.objectdb.com/api/java/jpa/Column you can define a SQL type
there. I've never tried this, but maybe it helps.