PluralAttribute#isAssociation returns true for @ElementCollection

Description

the method is implemented to always return true:

org.hibernate.jpa.internal.metamodel.PluralAttributeImpl

but it should be:

org.hibernate.jpa.internal.metamodel.PluralAttributeImpl

to exclude @ElementCollection attributes, which are NOT associations in terms of entity model, just like @Embedded attributes are not associations for SingularAttribute

Environment

Hibernate 5.0.7 shipped with Wildfly 10.0.0.Final

Status

Assignee

Gail Badner

Reporter

Michele Mariotti

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure