mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1730 - Fix for wrong JDBC batch sorting / ordering
This is a bit of a refactor that simplifies the ordering of batch execution (BatchedBeanHolder ordering). In short we batch by bean type and depth (rather than just type). This means that there are some cases we are not optimal (where we could batch by bean type in different depths) but that is expected to be rare and problematic for hierarchies of the same type.
This commit is contained in:
@@ -28,6 +28,7 @@ public class TestMultiCascadeBatch extends BaseTestCase {
|
||||
|
||||
@Test
|
||||
public void testMultipleCascadeInsideTransaction() {
|
||||
|
||||
final Site mainSite = new Site();
|
||||
mainSite.setName("mainSite");
|
||||
Ebean.save(mainSite);
|
||||
|
||||
Reference in New Issue
Block a user