HHH-8067 - Hibernate's ManagedType#getDeclaredAttribute fails to find plural attributes

(cherry picked from commit e5df5541c7)
This commit is contained in:
Steve Ebersole 2013-03-13 11:56:49 -05:00
parent 37f3fd7bc7
commit 1a3c25aa8b
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public abstract class AbstractManagedType<X>
* {@inheritDoc} * {@inheritDoc}
*/ */
public Attribute<X, ?> getDeclaredAttribute(String name) { public Attribute<X, ?> getDeclaredAttribute(String name) {
final Attribute<X, ?> attr = declaredSingularAttributes.get( name ); Attribute<X, ?> attr = declaredAttributes.get( name );
checkNotNull( "Attribute ", attr, name ); checkNotNull( "Attribute ", attr, name );
return attr; return attr;
} }