I am trying to switch all junit tests to hsqldb (real db is oracle). Problem appeared when i tried to map .hbm.xml file that contains:
<property name="begin" type="integer" column="BEGIN" /> <property name="end" type="integer" column="END" />
Now during mem db build i am getting this info:
ERROR - Unsuccessful: create table BLOCKTIME (ID bigint not null, BEGIN integer, END integer, TIMEZONE varchar(255), primary key (ID)) ERROR - Unexpected token: END in statement [create table BLOCKTIME (ID bigint not null, BEGIN integer, END]
The problem seems to be BEGIN and END table names that are restricted for mssql as keywords.
Any idea how to ommit this problem?
Thanks,
Marek.
You can escape the column name:
Or