-->
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: two discriminator columns
PostPosted: Fri Mar 18, 2005 6:16 am 
Newbie

Joined: Fri Mar 04, 2005 9:18 am
Posts: 5
Location: Hasselt, Belgium
Hibernate version: 3.0rc1

Hello,

I was wondering if it is possible to have a discriminator which uses 2 columns ( I know this is a very ugly data model but affortunately I will have to work with it). Is this possible or is there a known workaround?

My question can be seen as this:

I have an inheritance tree with objects A, B, C, D, E
Where A is the superclass off all the objects
B extends from A, C extends from A
D extends from B and E extends from C
Know the distinction between B and C is made of a discriminator column d1
But the distinction between a B or a D is made by a discriminator column d2. So actually I need to supply two values to make a distinction in my inheritance tree?

Does someone know a solution to this?

Thanks in advance,
Kind Regards,

Niels Soeffers


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.