I\'ve been having an annoying exception a lot lately, and after some research on Google and this forum I still haven\'t found an answer that could solve my problem.
Try to use this
this.getHibernateTemplate().setCheckWriteOperations(false);
Still if you are using hibernate4 and not able to update entity/table then you need to create session and need to do flush the session i.e.
this.getHibernateTemplate().setCheckWriteOperations(false);
Session session = this.getHibernateTemplate().getSessionFactory().openSession();
session.saveOrUpdate(entityName,app);
session.flush();
session.close();