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
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).
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..
Try to switch to Serializable and write the expected length of the column in the columnDefinition value of the @Column-Annotation.