-->
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 conditionally generate a non-key identity column
PostPosted: Fri Jun 11, 2010 10:06 am 
Newbie

Joined: Thu Jun 10, 2010 4:51 pm
Posts: 1
The requirements are that the database column should be generated based on the presence of data in other attributes in the object. Otherwise, it will be set to -1 (a value to indicate there is no value)
Is it possible to initiate conditional generation from a User Type?
Can this be achieved via hbm mapping only?
The identity column is not the key to the table, but a key to a DB2 identity.


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.