hi and a wounderfull morning,
I had a little problem with hibernate 1.4 and perhaps its only a problem aobut how to do this....
ok now descripe it
I had a class A with a 1:n relation to B. It's maped as a set.
now my object B is an interface with 3 implementation (C,D,F) likes the cheque example at the documentation. So i want to say A.getChildren() and this gives me a set containning some objects of type C, some objects of D and some of E.
now the question: Hhow to deal with this problem, I had absolutly no idea...
o i forgett, the database is an existing application and i don't have the possibility to modify the model, so all subclasses must stored in one table...
thanks, gert
|