Ok, I've got a entity bean with a property annotated like so:
@JoinColumn(name="background", nullable=false)
@ManyToOne(cascade={CascadeType.PERSIST}, fetch=FetchType.EAGER)
@LazyToOne(LazyToOneOption.FALSE)
public Background getBackground() {
return background;
}
Which if I'm reading everything properly should cause the Background object to
be initialized when the entity bean is loaded from the DB, however I keep
getting a LazyInitiaalizationException when I attempt to access that method
saying that the owning session was closed.
Why is it trying to load the background lazily when I specificly listed it as
non-lazy and eager?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960226#3960226
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960226
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user