Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to save

 
fabian verbeek
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to use hibernate 4 and spring 3 but when i want to save, i receive this next trace


it concerns this line: Session session = sessionFactory.getCurrentSession(); in this class


My class User:


Here is my hibernate-context:


My servlet


finally my page asp


I'm disturbing with this and hope to find a solution
 
fabian verbeek
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying an other way by using a class HibernateSessionFactory



And my hibernate.cfg.xml


I replace the line in my userService:
Session session = sessionFactory.getCurrentSession();
session.save(usr);
by
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic