These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Unexpected token: FROM in statement (create table in hsql)
PostPosted: Thu Mar 26, 2009 10:39 am 
Newbie

Joined: Mon Oct 20, 2008 5:52 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.