-->
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: SchemaGenerator issue
PostPosted: Wed Nov 07, 2007 5:29 pm 
Newbie

Joined: Tue May 08, 2007 12:21 pm
Posts: 4
In a nutshell:
- I have an entity bean that has a basic property of the type int.
- hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

The SchemaGenerator generate the following SQL to create that field:
create table MyTable (id bigint not null, order integer not null, primary key (id)) ENGINE=InnoDB

This fails since "integer" is not a valid SQL type. Any idea how to fix this?

EDIT: I should also mention that I'm using annotations for my mappings, if that makes a difference!

EDIT 2: SOLVED!! I should have known... ORDER is an SQL keyword, not a good property name!!


Thanks,

Brian


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.