mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13778: @OrderBy
handling using SQL AST
- fixed test
This commit is contained in:
parent
b87bbb4720
commit
287808a914
@ -98,7 +98,7 @@ public void testMaps(SessionFactoryScope scope) {
|
|||||||
final EntityMappingType containerEntityDescriptor = domainModel.getEntityDescriptor( EntityOfMaps.class );
|
final EntityMappingType containerEntityDescriptor = domainModel.getEntityDescriptor( EntityOfMaps.class );
|
||||||
|
|
||||||
// 8 for now, until entity-valued map keys is supported
|
// 8 for now, until entity-valued map keys is supported
|
||||||
assertThat( containerEntityDescriptor.getNumberOfAttributeMappings(), is( 9 ) );
|
assertThat( containerEntityDescriptor.getNumberOfAttributeMappings(), is( 10 ) );
|
||||||
|
|
||||||
final PluralAttributeMapping basicByBasic = (PluralAttributeMapping) containerEntityDescriptor.findAttributeMapping( "basicByBasic" );
|
final PluralAttributeMapping basicByBasic = (PluralAttributeMapping) containerEntityDescriptor.findAttributeMapping( "basicByBasic" );
|
||||||
assertThat( basicByBasic, notNullValue() );
|
assertThat( basicByBasic, notNullValue() );
|
||||||
@ -139,6 +139,12 @@ public void testMaps(SessionFactoryScope scope) {
|
|||||||
assertThat( manyToManyByBasic, notNullValue() );
|
assertThat( manyToManyByBasic, notNullValue() );
|
||||||
assertThat( manyToManyByBasic.getKeyDescriptor(), notNullValue() );
|
assertThat( manyToManyByBasic.getKeyDescriptor(), notNullValue() );
|
||||||
assertThat( manyToManyByBasic.getElementDescriptor(), notNullValue() );
|
assertThat( manyToManyByBasic.getElementDescriptor(), notNullValue() );
|
||||||
|
|
||||||
|
final PluralAttributeMapping componentByBasicOrdered = (PluralAttributeMapping) containerEntityDescriptor.findAttributeMapping( "componentByBasicOrdered" );
|
||||||
|
assertThat( componentByBasicOrdered, notNullValue() );
|
||||||
|
assertThat( componentByBasicOrdered.getKeyDescriptor(), notNullValue() );
|
||||||
|
assertThat( componentByBasicOrdered.getElementDescriptor(), notNullValue() );
|
||||||
|
assertThat( componentByBasicOrdered.getOrderByFragment(), notNullValue() );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user