HHH-4202 - Implement JPA 2.0 metamodel APIs
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17837 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
b687bbeb9b
commit
9fb2cb6d15
|
@ -156,9 +156,7 @@ class MetadataContext {
|
|||
Set<SingularAttribute<? super X, ?>> attributes = new HashSet<SingularAttribute<? super X, ?>>();
|
||||
Iterator<Property> properties = persistentClass.getIdentifierMapper().getPropertyIterator();
|
||||
while ( properties.hasNext() ) {
|
||||
attributes.add(
|
||||
(SingularAttribute<? super X, ?>) attributeFactory.buildAttribute( jpaEntityType, properties.next() )
|
||||
);
|
||||
attributes.add( attributeFactory.buildIdAttribute( jpaEntityType, properties.next() ) );
|
||||
}
|
||||
return attributes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue