-->
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.  [ 2 posts ] 
Author Message
 Post subject: discriminator as part of natural key
PostPosted: Wed Jul 02, 2008 9:59 am 
Beginner
Beginner

Joined: Wed Dec 06, 2006 6:24 am
Posts: 24
Location: Bangalore
Hi,


Can we make discriminator as part of natural key?
If so, can any one please provide your suggestions how can we do that?

Regards,
Vinay

_________________
Vinay N


Top
 Profile  
 
 Post subject: more explanation regarding my question
PostPosted: Thu Jul 03, 2008 2:46 am 
Beginner
Beginner

Joined: Wed Dec 06, 2006 6:24 am
Posts: 24
Location: Bangalore
Code:
<class name="xyz" table="xyz" >
<id name="id">
<column name="id"/>
<generator class="sequence >
...
</generator>
</id>

<discriminator>
<column name="discriminator" />
</discriminator>

<natural-id>
<property name="property1" column="property1"/>
....
</natural-id>

</class>


if discriminator is part of natural key, how can we include?
can we declare dscriminator property in our POJO also?
please provide your help.

Regards,
Vinay

_________________
Vinay N


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.