HibernateDaoSupport. getHibernateTemplate()
September 10th, 2007 by Wenslauw
I extended my little chat robot with a feature to greet new people joining the channel. Turns out the hibernate template is being reused, so set the maximum results to one once and you’re stuck with it forever. Fixing it didn’t take a long time, but it doesn’t feel good to have to restore the settings of the damned thing to the settings it had before this particular code. Maybe I should consider subclassing HibernateDaoSupport.
Posted in Programming