gavin wrote:
Use a later HSQLDB, ie. the one that ships with Hibernate.
I was not able to find hsqldb in the binary distributions of Hibernate 2.0.3 or 2.1 beta 6, maybe I have missed something. I'll check in CVS. Anyway, I tried switching to HSQLDB 1.7.1a, which is the latest version from the HSQLDB site, but this did not change the behavior.
The descriptor has the following element:
<id name="thingId" type="long" unsaved-value="-2000" >
<generator class="native"/>
</id>
The persisted object is:
public class Thing
{
private long thingId;
public long getThingId() ....
public void setThingId(long thingId) ....
}
This generates the following DDL:
create table THINGS (
thingId BIGINT NOT NULL IDENTITY,
... blah blah blah ....
);
HSQLDB apparently doesn't like the way the 'thingId' column is defined, and responds with:
Wrong data type: THINGID in statement [ create table ... blah blah blah ...