Skip to content

Files

Latest commit

 

History

History

HibernateSpringBootMergeCollections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

How To Merge Entity Collections

Description: This is a Spring Boot example based on the following article. Is a functional implementation of the Vlad's example. It is highly recommended to read that article.

Key points:

  • remove the existing database rows that are no longer found in the incoming collection
  • update the existing database rows which can be found in the incoming collection
  • add the rows found in the incoming collection, which cannot be found in the current database snapshot

If you need a deep dive into the performance recipes exposed in this repository then I am sure that you will love my book "Spring Boot Persistence Best Practices"If you need a hand of tips and illustrations of 100+ Java persistence performance issues then "Java Persistence Performance Illustrated Guide" is for you.