-->
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: unique id generation for all DB vendors
PostPosted: Wed Dec 26, 2012 8:14 am 
Newbie

Joined: Wed Dec 26, 2012 6:28 am
Posts: 3
I have a project which is developed using hibernate- jpa annoatation.

I have chance to create id using JPA which are AUTO, Increment, sequence and table.

Auto is working fine for all DB vendors but, it increase the id for all table together.

Ex: Table a - id is 100

table b id is 101.

c id is 102.

i wanna have ids like

For table A id should be 100 to 1000

For table B id should be 100 to 1000

for all tables also.

I don't want to create separate sequence & Table and make DB fill.


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.