[hibernate-dev] @ManyToOne + @Basic

Brett Meyer brmeyer at redhat.com
Mon Mar 17 12:45:15 EDT 2014

+1 -- I don't think that should be valid.  Conceptually, it makes no sense.  I'm wondering if that came from a contributor that was simply trying to make it LAZY, but didn't understand how to properly do that with annotations...

Brett Meyer
Red Hat, Hibernate ORM

----- Original Message -----
From: "Steve Ebersole" <steve at hibernate.org>
To: "hibernate-dev" <hibernate-dev at lists.jboss.org>
Sent: Saturday, March 15, 2014 1:48:21 PM
Subject: [hibernate-dev] @ManyToOne + @Basic

There is a test currently failing with the new metamodel code.  The mapping
that causes the problem has the following annotations:


Is it really legal to combine @ManyToOne and @Basic?  Those seem "at odds".
 My guess is that the legacy binding code simply did not validate for this.

hibernate-dev mailing list
hibernate-dev at lists.jboss.org

More information about the hibernate-dev mailing list