I have the same problem. I have a superclass and joined-subclasses like this:
class A
* joined-subclass B
* joined-subclass C
B and C extend A. When I make a query on A I always get a SQL query which makes an outer join with B and C. I am only interested in the data from A. B and C will be loaded when needed.
I tried everything. Lazy="true" doesn't have effect on the joined-sublass. The polymorphic attribute "explicit" doesn't either. Also, setting the "class" attribute in the criteria query brings nothing.
The problem is that table A is really big, and also B and C. This results in a very slow query.
How can this be solved?
Greetings
Jan
|