+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(a)hibernate.org>
To: "hibernate-dev" <hibernate-dev(a)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:
@Id
@ManyToOne(...)
@JoinColumns(...)
@Basic(fetch=FetchType.LAZY)
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.
Wdyt?
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev