-->
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: how to write own id generator class?
PostPosted: Sun Mar 11, 2007 2:58 am 
Newbie

Joined: Thu Mar 08, 2007 8:49 am
Posts: 11
Location: Hyd
[b]3.0[/b]

Hi,

Most of our DB tables are having Composite-IDs.we r using own sequence generator logic. we have Id_Generator table which contains other tables as argument.
[b]Id_Generator table

TBName next_no delete_Flag Row_Version_No

Advance 1 1 0

Product 3 1 2

[/b]

I want to write a generic IDGenerator class and send tablename as argument from .hbm file.

Can any one help me on writting own IDGenerator class.

_________________
Thanks&Regards
Sunil k


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.