-->
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: HiLo ID generator
PostPosted: Mon Aug 07, 2006 12:22 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:21 pm
Posts: 61
Location: Hannover
Hi,

I'm trying to use a HiLo ID generator for my classes. I want to store the high values all in one table, and have created multiple columns (one for each table).
Code:
MYIDTABLE
TABLE1    TABLE2     TABLE3
483        23            8298

This works for my current solution, so I'm looking for a ID generator which stores each high value in a different row, not in a different column.
Code:
MYIDTABLE
TABLENAME    HIGHVALUE
TABLE1          483
TABLE2          23
TABLE3          8298

This would be much more flexible for future extensions. Is such a generator out there, or do I have to write my own generator?


Hibernate version: 3.05


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.