Home CascadeType.Merge in entity relations with Spring Data
Reply: 0

CascadeType.Merge in entity relations with Spring Data

user685 Published in July 16, 2018, 6:12 pm

I have two entities (Consultancy - the owner, and InterviewType) with @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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.361015 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO