#2690 - Refactor internals, tidy SaveManyBeans

- Introduce hasOrderColumn field
- Add clearedParent flag to only clear the parent bean from persistence context once (not per detail bean)
This commit is contained in:
Rob Bygrave
2022-05-13 11:38:39 +12:00
parent 74174444bb
commit a4df643d82
2 changed files with 18 additions and 22 deletions
@@ -10,10 +10,10 @@ import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
public class TestOrderColumn extends TransactionalTestCase {
class TestOrderColumn extends TransactionalTestCase {
@Test
public void testOrderColumnInheritance() {
void testOrderColumnInheritance() {
final OrderMaster master = new OrderMaster();
for (int i = 0; i < 5; i++) {
@@ -33,7 +33,7 @@ public class TestOrderColumn extends TransactionalTestCase {
}
@Test
public void testOrderColumnSortChange() {
void testOrderColumnSortChange() {
final OrderMaster master = new OrderMaster();
for (int i = 0; i < 5; i++) {
@@ -62,7 +62,7 @@ public class TestOrderColumn extends TransactionalTestCase {
}
@Test
public void testModifyTree() {
void testModifyTree() {
final OrderMaster master = new OrderMaster();
for (int i = 0; i < 5; i++) {
@@ -108,7 +108,7 @@ public class TestOrderColumn extends TransactionalTestCase {
}
@Test
public void testRemoveElement() {
void testRemoveElement() {
final OrderMaster master = new OrderMaster();
for (int i = 0; i < 5; i++) {