-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to use DB2 Sequences with hibernate ?
PostPosted: Tue Mar 23, 2004 3:46 am 
Newbie

Joined: Mon Mar 22, 2004 11:36 am
Posts: 7
Hi,

can anyone explain me how i should use a db2 sequence with
hibernate. Should i first read the sequence with a jdbc connection
and than set the hibernate configured object to store the row.

If so, for what is followed configuration, which i read from the
official hibernate doku.

<id name="id" type="long" column="uid">
<generator class="sequence">
<param name="sequence">uid_sequence</param>
</generator>
</id>

If anyone can help me about this I were very happy, or give me
an hint where i can find a example.

best wishes.

Taner.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 23, 2004 3:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
It is all automatic. You don't need anything apart from that mapping.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 23, 2004 4:37 am 
Newbie

Joined: Mon Mar 22, 2004 11:36 am
Posts: 7
gavin wrote:
It is all automatic. You don't need anything apart from that mapping.


But i didnt work, i asked the question before but nobody answered,
followed is the link with detailed info in which way i try that.

Can take a look at that.

http://forum.hibernate.org/viewtopic.php?t=929181

thanks.


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

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.