composite « Component « JPA Q&A





1. Using components as composite identfiers    forum.hibernate.org

Hi all, I have a question regarding the use of components as composite ids (as described in Section 8.4 of the documentation) Does this approach suppose that the setter of the property containing an associated object also set the related property in the id component? In other words, is this how it's supposed to work (see code below, using the example ...