-->
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: PostgreSQL Auto increament
PostPosted: Thu Apr 17, 2008 9:47 am 
Newbie

Joined: Thu Apr 17, 2008 9:34 am
Posts: 2
Hi All!

I have problem with DB PostgreSQL with Hibernate configurations

I have the following xml tag:

<id name="userId" type="int">
<column name="user_id" />
<generator class="sequence">
<param name="sequence">user_id_seq</param>
</generator>
</id>

The results:
1. The field 'user_id' created as PK - type integer (Great!)
2. The sequence 'user_id_seq' was created (Great!)
3. BUT!!! The table 'users' in the filed 'user_id' there is no sequence!!!

In MySQL I used <generator class="increament"> it it worked...
But this generator not working for me this time in PG DB

Please help... F1
Thanks

_________________
Idan
Java Developer


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.