Idea: I have 1 entity (table) Customer that has an embeddedid (composite id) CustomerId.
This CustomerId has an embeddable (component) Address (it is a component, not an entity (a separate table)
See below code for classes/ xml mapping below.
I try to map the composite id for CustomerId. Syntax-wise, I tried this/that but not worked.
I can not use <key-many-to-one of <composite-id since Address is not an Entity.
Any hints?
This CustomerId has an embeddable (component) Address (it is a component, not an entity (a separate table)
See below code for classes/ xml mapping below.
I try to map the composite id for CustomerId. Syntax-wise, I tried this/that but not worked.
I can not use <key-many-to-one of <composite-id since Address is not an Entity.
Any hints?