[hibernate-dev] [#HHH-4688] Make sure @OrderBy works for @ElementCollection - Hibernate JIRA

Emmanuel Bernard emmanuel at hibernate.org
Wed Jan 2 08:37:12 EST 2013


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.

Emmanuel

On Thu 2012-12-27 23:11, Strong Liu wrote:
> org.hibernate.test.annotations.collectionelement.OrderByTest was 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
> 
> {quote}
> @ElementCollection
> 
> Defines a collection of instances of a basic type or embeddable class.
>  {quote}
> 
> so, is this a hibernate specific feature or we should "correct" this test?
> -------------------------
> Best Regards,
> 
> Strong Liu <stliu at hibernate.org>
> http://about.me/stliu/bio
> 
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev


More information about the hibernate-dev mailing list