Skip to content

Commit

Permalink
HHH-7052 : Bind PluralAttributeBinding for sets of basic elements
Browse files Browse the repository at this point in the history
  • Loading branch information
gbadner committed Feb 25, 2012
1 parent da484df commit 12b0e98
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -100,7 +100,7 @@ private void doTest(MetadataSourceProcessingOrder processingOrder) {
assertTrue( bagHibernateTypeDescriptor.getTypeParameters().isEmpty() );
assertTrue( bagHibernateTypeDescriptor.getResolvedTypeMapping() instanceof BagType );
assertFalse( bagHibernateTypeDescriptor.getResolvedTypeMapping().isComponentType() );
assertEquals( "theBag", ( (BagType) bagHibernateTypeDescriptor.getResolvedTypeMapping() ).getRole() );
assertEquals( EntityWithBasicCollections.class.getName() + ".theBag", ( (BagType) bagHibernateTypeDescriptor.getResolvedTypeMapping() ).getRole() );

ForeignKey fkBag = bagKeyBinding.getForeignKey();
assertNotNull( fkBag );
Expand Down Expand Up @@ -148,7 +148,7 @@ private void doTest(MetadataSourceProcessingOrder processingOrder) {
assertTrue( setHibernateTypeDescriptor.getTypeParameters().isEmpty() );
assertTrue( setHibernateTypeDescriptor.getResolvedTypeMapping() instanceof SetType );
assertFalse( setHibernateTypeDescriptor.getResolvedTypeMapping().isComponentType() );
assertEquals( "theSet", ( (SetType) setHibernateTypeDescriptor.getResolvedTypeMapping() ).getRole() );
assertEquals( EntityWithBasicCollections.class.getName() + ".theSet", ( (SetType) setHibernateTypeDescriptor.getResolvedTypeMapping() ).getRole() );

ForeignKey fkSet = setKeyBinding.getForeignKey();
assertNotNull( fkSet );
Expand Down

0 comments on commit 12b0e98

Please sign in to comment.