-->
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: HSQL identity
PostPosted: Fri Nov 06, 2009 12:06 pm 
Newbie

Joined: Thu Sep 18, 2008 1:05 pm
Posts: 3
Hi,
I use Hibernate 3.3.1 GA. Primary key in my class is of type string and generator is set to native. When I use HSQL db it generates table as:

create table BLAHBLAH (ID_ varchar(255) generated by default as identity (start with 1), primary key (ID_))

which of course raises error.

In PostgreSQL or H2 it generated ok:
create table BLAHBLAH (ID_ varchar(255) not null, primary key (ID_))

Is this a bug in Hibernate?
Is there any built-in generator which generates strings?

Thanks

Fero


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.