Well, I have a Restaurant Entity with an Element Collection of Branches . Now my question is how do I remove a branch from a restaurant since an Embeddable object doesn't have an Id . Usually, what i would do If branch was an entity is
entityManager.remove(entityManager.getReference(Branch.class, branchId));
But since Branch is Embeddable object (without ID), I am not sure how to achieve it . Some code examples would be highly appreciated. Thanks in advance.