HHH-10689 : Some tests fails because oracle12c doesn't support single column identity table
This commit is contained in:
parent
4597a6b6f9
commit
ce0ca558da
|
@ -93,7 +93,7 @@ public class MapKeyAttributeConverterTest extends BaseNonConfigCoreFunctionalTes
|
||||||
MapValue foundValue = found.enumDefaultType.get( EnumMapKey.VALUE_1 );
|
MapValue foundValue = found.enumDefaultType.get( EnumMapKey.VALUE_1 );
|
||||||
assertEquals( EnumMapKey.VALUE_1, foundValue.enumDefault );
|
assertEquals( EnumMapKey.VALUE_1, foundValue.enumDefault );
|
||||||
|
|
||||||
assertEquals( 0, findDatabaseValue( foundValue, "enumDefault" ) );
|
assertEquals( 0, ( (Number) findDatabaseValue( foundValue, "enumDefault" ) ).intValue() );
|
||||||
getSession().close();
|
getSession().close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ public class MapKeyAttributeConverterTest extends BaseNonConfigCoreFunctionalTes
|
||||||
MapValue foundValue = found.enumExplicitOrdinalType.get( EnumMapKey.VALUE_2 );
|
MapValue foundValue = found.enumExplicitOrdinalType.get( EnumMapKey.VALUE_2 );
|
||||||
assertEquals( EnumMapKey.VALUE_2, foundValue.enumExplicitOrdinal );
|
assertEquals( EnumMapKey.VALUE_2, foundValue.enumExplicitOrdinal );
|
||||||
|
|
||||||
assertEquals( 1, findDatabaseValue( foundValue, "enumExplicitOrdinal" ) );
|
assertEquals( 1, ( (Number) findDatabaseValue( foundValue, "enumExplicitOrdinal" ) ).intValue() );
|
||||||
getSession().close();
|
getSession().close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ public class MapKeyAttributeConverterTest extends BaseNonConfigCoreFunctionalTes
|
||||||
MapValue foundValue = found.enumImplicitOverrideOrdinalType.get( ImplicitEnumMapKey.VALUE_1 );
|
MapValue foundValue = found.enumImplicitOverrideOrdinalType.get( ImplicitEnumMapKey.VALUE_1 );
|
||||||
assertEquals( ImplicitEnumMapKey.VALUE_1, foundValue.enumImplicitOverrideOrdinal );
|
assertEquals( ImplicitEnumMapKey.VALUE_1, foundValue.enumImplicitOverrideOrdinal );
|
||||||
|
|
||||||
assertEquals( 0, findDatabaseValue( foundValue, "enumImplicitOverrideOrdinal" ) );
|
assertEquals( 0, ( (Number) findDatabaseValue( foundValue, "enumImplicitOverrideOrdinal" ) ).intValue() );
|
||||||
getSession().close();
|
getSession().close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ public class MapKeyAttributeConverterTest extends BaseNonConfigCoreFunctionalTes
|
||||||
@Table(name = "map_entity")
|
@Table(name = "map_entity")
|
||||||
public static class MapEntity {
|
public static class MapEntity {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "mapEntity", cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "mapEntity", cascade = CascadeType.ALL)
|
||||||
|
|
Loading…
Reference in New Issue