HHH-7052 : Bind PluralAttributeBinding for sets of basic elements

This commit is contained in:
Gail Badner 2012-02-24 20:09:27 -08:00
parent da484df5da
commit 12b0e98ee0
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ public class BasicCollectionBindingTests extends BaseUnitTestCase {
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 );
@ -148,7 +148,7 @@ public class BasicCollectionBindingTests extends BaseUnitTestCase {
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 );