BAEL-4643: JPA CascadeType.REMOVE vs orphanRemoval

* Reformats code using the provided intelliJ-formatter.xml
This commit is contained in:
Emmanuel Yasa
2020-11-03 19:11:44 +08:00
parent 06c800c526
commit 3139be9468
6 changed files with 62 additions and 55 deletions
@@ -1,6 +1,9 @@
package com.baeldung.jpa.removal;
import java.util.List;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
@@ -8,9 +11,7 @@ import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.List;
public class CascadeTypeRemoveIntegrationTest {
@@ -1,7 +1,9 @@
package com.baeldung.jpa.removal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
@@ -9,9 +11,8 @@ import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
public class OrphanRemovalIntegrationTest {