-->
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.  [ 3 posts ] 
Author Message
 Post subject: specifying more than one discriminator value
PostPosted: Wed Sep 22, 2004 4:30 pm 
Newbie

Joined: Mon Sep 20, 2004 7:02 am
Posts: 3
can we specify more than one value for the discriminator field for a subclass
if so how could it be

thanks in advance
zeeta


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 23, 2004 5:03 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
AFAIK this is planed (done?) for hibernate 3.

If you have a DB which supports triggers on views (e.g. Oracle) you could do it like that:
Create a view which composes the values into one column. Then create an instead of trigger for insert/delete/update where you decompose the values in order to access the apropriate columns.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 23, 2004 6:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
It is done in HB3


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.