I have two entities (
Consultancy - the owner, and
@ManyToMany bidirectional relations. User can attach the interview type to the Consultancy. I know that in a case of we're using a Hibernate we can just invoke
merge() method on
EntityManager to persist a new transient entity or update a detach object, but what about
save() method in Spring Data or Spring Data have another method? Does it make some effect on a depend entity of a
@ManyToMany relations? In case of 'yes' in what way? Does it invoke a Hibernates
merge() method under the hood?