Hi,
I am working with a database which structure I cannot change. The database scheme is a little bit "strange":
I've got 2 tables with a one-to-many connection. Both tables have composite-ids. However, just a part of the composite-id of the parent-table is part of the composite-id of the child-table. The rest of the key is not referenced at all.
Code:
=table A= =table B=
_pk1 <-- _pk1
_pk2 _pk3
more_attr more_attr
I do not have to care about inconsistences, because _pk3 is just a primary key for history-reasons. Is it possible to model this in hibernate? I am looking for something like "property-ref" for the key-many-to-one tag which of course make no sense in general but in my case.
Thanks a lot for your help!
Greeting, Heiko