-->
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: setting initial value
PostPosted: Wed Feb 22, 2012 12:02 pm 
Newbie

Joined: Wed Feb 22, 2012 11:49 am
Posts: 1
Hi friends, could you pls help me with the following requirement.

I have table "vat.sell" with id as primary key. The table is already loaded with data. max(id)=1005
I need to configure hibernate such away that id is incremental and eveytime it takes max(id) to generate with the initial value as 1006.
I am not supposed to create sequence on the oracle database.


<id name="id" type="int" column="id">
<generator class="increment"/>
</id>


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.