|
From: Colin S. <col...@ex...> - 2004-07-15 03:30:25
|
Juergen, The existing code in HibernateDaoSupport created a HibernateTemplate with the allowCreate flag as true by default, and as the setSessionFactory method where the template was created was final, there was no way to override this. I have created a protected field called defaultTemplateAllowCreateValue (true by default to maintain existing behaviour), which a user HibernateDaoSupport subclass may override. Additionally, I have added a setter for this default value, so a DAO instance can be set to true or false specifically (without having to subclass). This value does not affect any HibernateTemplate passed in explicitly. Colin |