Hibernate version:
2.1.7
Hi,
i've got a little problem and still hoping that hibernate provides a way to solve it although i know that this shouldn't happen and therefore isn't really a 'Hibernate-Thing' ...
Situation:
I've got a ClassA with a one-to-many-reference (set) to ClassB. A normal thing ... but, that's my problem, in the legacy db i'm using all data (for ClassA and ClassB) was inserted in one table and it doesn't look very good for me ... it seams that there's no way to change it ... (but i'm not giving up ;-) ) ...
Well, i've got a not normalized table and an Object-Model that (of course) doesn't fit to that situation ....
Is there a possibility to map this situation? I don't think so, but 'hope dies last ' ;) ...
My current solution would be to map a Persistence-Object to the business-classes ... not nice but the only possibility i can imagine so far ...
Is there a possiblity (perhaps a component-mapping combined with a 'set and composite-element') to map this?
TiA
curio
|