I would like to delete all the groups among which a user is an owner but it does not work at the moment. I think that there is something which is lacking at the level of the
Please try adding the inverse=true to User file set name proprietary also with cascade=all",delete-orphan
which deletes the Groups when the User is deleted. Also please be extremely careful of how you delete User in Hibernate:
Session must be flushed prior to deleting User.
All Groups linked to your User must be evicted from all active sessions and 2nd level cache.