Hibernate version: 3.3.1.GA
Full stack trace of any exception that occurs:
15:09:43,957 ERROR [SchemaExport] Unsuccessful: create table Leave (id bigint generated by default as identity (start with 1), from timestamp, to timestamp, version integer, acceptant_id bigint, employee_id bigint, primary key (id))
15:09:43,957 ERROR [SchemaExport] Unexpected token: FROM in statement [create table Leave (id bigint generated by default as identity (start with 1), from]
Name and version of the database you are using: hsql 1.8.0
I have a leave entity with:
@Column
public Date getFrom() {
return from;
}
I assume that as a dialect problem or just schema updater - it shouldn't let through a statement that consist of restricted names like 'from' - and because the column name is not specified - it should prefix/suffix that to be proper.
|