Hi guys,
just a couple of things i want to clear up regarding this two classes:
1. My DAO extends the HibernateDAOsupport class. If say for example a find method in my DAO is called from the save method of the same DAO so both methods are in the same class do i still need to go and call the getHibernateTemplate method?
is it possible to pass the template through is that a recommended practice?
for example
MYDAO extends hibernateDAOSupoort{
public void saveObject(object object)
{
HibernateTemplate hibTemp = gethibTemop();
//call to other DAO method
findDAO(object);
}
public findDAO(object obj)
{
does this method need to call the hibernate tempkate as well
}
}
Thanks


Reply With Quote