-
1. Re: How can set longblob type in entitybean 3.0
jaikiran Jun 20, 2008 2:22 AM (in response to jk6803)How are you generating the table schema scripts? Are you relying on the "hibernate.hbm2ddl.auto" property for schema generation? If yes, then make sure that the column type in the generated schema script is not tinyblob
-
2. Re: How can set longblob type in entitybean 3.0
itsme Jun 20, 2008 3:33 AM (in response to jk6803)The Length attribute of the @Column - Annotation applies only to string valued columns (see ejb3-spec p. 168).
Instead of using object as the base type you could try to use byte[] or even string (with length declaration).
\sandor\ -
3. Re: How can set longblob type in entitybean 3.0
jk6803 Jun 20, 2008 10:24 AM (in response to jk6803)The schema is automatically generated at the deployment time if there is no schema in the database.
We use Object type as a base, as it should accommodate any type of objects.
After removing the table, whenever deploying EJB, the schema always say tinyblod.. -
4. Re: How can set longblob type in entitybean 3.0
itsme Jun 23, 2008 3:11 AM (in response to jk6803)Try to switch to Serializable and write the expected length of the column in the columnDefinition value of the @Column-Annotation.