Mapping HIbernate Embeddable

2

Good morning!

I have a question regarding the mapping of composite keys.

The situation is as follows:

I have a class whose primary key is made up of two other classes, but I have a third class that the third key is a compound of the other class that the key is already composed.

The question would be, using embeddable will I reference the class itself or its key?.

Exemplifying for ease of understanding;

class 1 (compound key) Apolice - > (ApolicePK embeddable)

class 2 (compound key)

Archive - > (it is embeddable but I do not know if it references Apolice or ApolicePK)

I'm waiting for some help

Sincerely

    
asked by anonymous 09.01.2018 / 12:07

0 answers