Skip to content

Commit 287808a

Browse files
committed
HHH-13778: @OrderBy handling using SQL AST
- fixed test
1 parent b87bbb4 commit 287808a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/metamodel/mapping/collections/PluralAttributeMappingTests.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testMaps(SessionFactoryScope scope) {
9898
final EntityMappingType containerEntityDescriptor = domainModel.getEntityDescriptor( EntityOfMaps.class );
9999

100100
// 8 for now, until entity-valued map keys is supported
101-
assertThat( containerEntityDescriptor.getNumberOfAttributeMappings(), is( 9 ) );
101+
assertThat( containerEntityDescriptor.getNumberOfAttributeMappings(), is( 10 ) );
102102

103103
final PluralAttributeMapping basicByBasic = (PluralAttributeMapping) containerEntityDescriptor.findAttributeMapping( "basicByBasic" );
104104
assertThat( basicByBasic, notNullValue() );
@@ -139,6 +139,12 @@ public void testMaps(SessionFactoryScope scope) {
139139
assertThat( manyToManyByBasic, notNullValue() );
140140
assertThat( manyToManyByBasic.getKeyDescriptor(), notNullValue() );
141141
assertThat( manyToManyByBasic.getElementDescriptor(), notNullValue() );
142+
143+
final PluralAttributeMapping componentByBasicOrdered = (PluralAttributeMapping) containerEntityDescriptor.findAttributeMapping( "componentByBasicOrdered" );
144+
assertThat( componentByBasicOrdered, notNullValue() );
145+
assertThat( componentByBasicOrdered.getKeyDescriptor(), notNullValue() );
146+
assertThat( componentByBasicOrdered.getElementDescriptor(), notNullValue() );
147+
assertThat( componentByBasicOrdered.getOrderByFragment(), notNullValue() );
142148
}
143149

144150
}

0 commit comments

Comments
 (0)