HHH-14840 : IBM Db2 11.1 fails on TransientOverride test cases
This commit is contained in:
parent
16d1a42b26
commit
d81ec178a3
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.inheritance;
|
package org.hibernate.test.inheritance;
|
||||||
|
|
||||||
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.ConstraintMode;
|
import javax.persistence.ConstraintMode;
|
||||||
|
@ -85,6 +86,7 @@ public class TransientOverrideAsPersistentJoined extends BaseNonConfigCoreFuncti
|
||||||
final List<Employee> employees = session.createQuery( "from Employee", Employee.class )
|
final List<Employee> employees = session.createQuery( "from Employee", Employee.class )
|
||||||
.getResultList();
|
.getResultList();
|
||||||
assertEquals( 2, employees.size() );
|
assertEquals( 2, employees.size() );
|
||||||
|
employees.sort( Comparator.comparing( Employee::getName ) );
|
||||||
assertTrue( Editor.class.isInstance( employees.get( 0 ) ) );
|
assertTrue( Editor.class.isInstance( employees.get( 0 ) ) );
|
||||||
assertTrue( Writer.class.isInstance( employees.get( 1 ) ) );
|
assertTrue( Writer.class.isInstance( employees.get( 1 ) ) );
|
||||||
final Editor editor = (Editor) employees.get( 0 );
|
final Editor editor = (Editor) employees.get( 0 );
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.inheritance;
|
package org.hibernate.test.inheritance;
|
||||||
|
|
||||||
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.ConstraintMode;
|
import javax.persistence.ConstraintMode;
|
||||||
|
@ -84,6 +85,7 @@ public class TransientOverrideAsPersistentTablePerClass extends BaseNonConfigCor
|
||||||
final List<Employee> employees = session.createQuery( "from Employee", Employee.class )
|
final List<Employee> employees = session.createQuery( "from Employee", Employee.class )
|
||||||
.getResultList();
|
.getResultList();
|
||||||
assertEquals( 2, employees.size() );
|
assertEquals( 2, employees.size() );
|
||||||
|
employees.sort( Comparator.comparing( Employee::getName ) );
|
||||||
assertTrue( Editor.class.isInstance( employees.get( 0 ) ) );
|
assertTrue( Editor.class.isInstance( employees.get( 0 ) ) );
|
||||||
assertTrue( Writer.class.isInstance( employees.get( 1 ) ) );
|
assertTrue( Writer.class.isInstance( employees.get( 1 ) ) );
|
||||||
final Editor editor = (Editor) employees.get( 0 );
|
final Editor editor = (Editor) employees.get( 0 );
|
||||||
|
|
Loading…
Reference in New Issue