Hi all,
I hope this is still a bit on topic because it might be an hypernic issue...
As ROO-873 / ROO-1127 are a bit of a show stopper for using Mysql DB's to store images, I thought I might give Hypersonic DB a try.
Though now I run into another issue "unexpected token: NOT"...
My image variable:
The error it throws:PHP Code:@Lob
@Basic(fetch = FetchType.LAZY)
@Column(columnDefinition = "BLOB NOT NULL")
@NotNull
private Byte[] source;
Adjusting columnDefinition to:PHP Code:2010-10-08 00:47:23,288 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table image (id bigint generated by default as identity (start with 1), active bit, create_date timestamp, name varchar(255) not null, size double not null, source BLOB NOT NULL not null, title varchar(255) not null, type varchar(4) not null, update_date timestamp, version integer, article bigint, primary key (id))
2010-10-08 00:47:23,288 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - unexpected token: NOT
2010-10-08 00:47:23,290 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: alter table image add constraint FK5FAA95B9252F6B5 foreign key (article) references article
2010-10-08 00:47:23,290 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: IMAGE
(or removing the @NotNull)PHP Code:@Column(columnDefinition = "BLOB")
causes another issue trying to open a saved image entity:
Any ideas for a fix or workaround?PHP Code:2010-10-08 00:54:01,249 [tomcat-http--4] ERROR org.hibernate.util.JDBCExceptionReporter - incompatible data type in conversion: from SQL type BLOB to [B, value: instance of org.hsqldb.types.BlobDataID
I really want to save images related to other entitities, and since GAE entity relationships are no option, mysql and hypersonic have issues...are there any other options / DB's I could try perhaps?
Thanks a lot in advance and good luck with the project!


Reply With Quote