|
Hi All,
I have a base Entity defining a FinderMethod
findAll(), which generates the hibernate query for that class in the factory.
This is Ok.
But it generates the same method with exactly the
same hibernate query in all sub-Entity factories,
whereas I was expecting it to use the class of the
sub-entity.
For exemple having this :
net.sf.hibernate.Query query = session.createQuery("from pkg.SubEntity as
subEntity");
instead of this :
net.sf.hibernate.Query query = session.createQuery("from pkg.BaseEntity as
baseEntity");
Regards,
Fred.
|
