Hibernate Save Child Entities: Cascade PERSIST and merge()
Save a parent and its child entities with one persist() call in Hibernate 7. See cascade PERSIST and MERGE, the helper method that sets both sides, managed and detached parents, getReference(), and the real SQL and errors.
