I am using Hibernate 3.0 . I am facing an issue in using joined sub class.
Here is a small example
I have an Animal super class, and i have 2 sub classses Dog and Cat. I am jusing joined sub class for defining this relationship.
when i do
Query query=session.createQuery("from Animal");
it is fetching the objects of animal,dog and cat.
This is creating a problems as the fetching time is more.
Any solution for the same.