Hello,
I want to know if it's possible (and how could I do that) to map this kind of
relation in OJB.
Table A
idA
otherFields
Table B
idB
otherFields
Table C
idC
foreignId
type
otherFields
Relation : C - A 1:n
C - B 1:n
example :
A
a1 ...
a2 ...
B
b1 ...
b2 ...
C
c1 b1
My english is not good ;-)
What I want is in C object 2 collections one with typeA Object and one with
typeB Object. My question is how to do a mapping with OJB that can make this
kind of switch on type field.
In other word when I load A objects collection of a C object the query is :
SELECT