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
|