I have 3 entities
Hibernate 3.2.6/annotations 3.3.0
class A {
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "b", referencedColumnName="b")
private B b;
}
class B {
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "c", referencedColumnName="c")
private C c;
}
class C {
}
I want to retrieve a list of A Joined to B, but C is not necessary for this query.
When I get my list of A, and use an object I get a sub select statement on C.
How do I prevent this? If I cant do that for whatever reason, How do I retrieve C in a Join?
Kal
|