Spring JPA Data: Query ElementCollection

Embeddable classes representation don’t have a persistent identity of their own. Entity classes will have persistent identity of thier own. Instances of the Address embeddable class here share the identity of the entity that owns it, that is Customer. As embeddable classes exist only as the state of another entity, consider making Address as Entity if you require a persistent id Addressid for Address. Otherwise, also check persistent provider specific annotations like CollectionId CollectionId.html and define addressid as a collectionid.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top