In the old code I gave priority to the association information so if the
code has not changed, your @Entity is really considered a @Embeddable
because of the @ElementCollection (at least for this association). But
we should nevertheless fix this test as I consider this practice a user
bug more than anything else.
On Thu 2012-12-27 23:11, Strong Liu wrote:
introduced by this JIRA, and it passes on master.
The question is, org.hibernate.test.annotations.collectionelement.Products#widgets, used
in this test, which has @ElementCollection on it and its element type is an @Entity
but according to the JPA SPEC
Defines a collection of instances of a basic type or embeddable class.
so, is this a hibernate specific feature or we should "correct" this test?
Strong Liu <stliu at hibernate.org>
hibernate-dev mailing list