File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed 
hibernate-core/src/test/java/org/hibernate/orm/test/records Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 2828public  class  MergeRecordEmbeddedIdTest  {
2929	@ AfterEach 
3030	protected  void  cleanupTest (SessionFactoryScope  scope ) {
31- 		scope .inTransaction ( session  -> {
32- 			// Some dialects (e.g. Firebird) (can) fail for a non-cascaded foreign key depending on actual row order 
33- 			// Clear foreign key before delete 
34- 			session .createMutationQuery ( "update MyEntity set associatedEntity = null"  ).executeUpdate ();
35- 			session .createMutationQuery ( "delete from MyEntity"  ).executeUpdate ();
36- 		} );
31+ 		scope .getSessionFactory ().getSchemaManager ().truncateMappedObjects ();
3732	}
3833
3934	@ Test 
Original file line number Diff line number Diff line change 2828public  class  RecordIdClassTest  {
2929	@ AfterEach 
3030	protected  void  cleanupTest (SessionFactoryScope  scope ) {
31- 		scope .inTransaction ( session  -> {
32- 			// Some dialects (e.g. Firebird) (can) fail for a non-cascaded foreign key depending on actual row order 
33- 			// Clear foreign key before delete 
34- 			session .createMutationQuery ( "update MyEntity set associatedEntity = null"  ).executeUpdate ();
35- 			session .createMutationQuery ( "delete from MyEntity"  ).executeUpdate ();
36- 		} );
31+ 		scope .getSessionFactory ().getSchemaManager ().truncateMappedObjects ();
3732	}
3833
3934	@ Test 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments