aspose file tools*
The moose likes Object Relational Mapping and the fly likes unable to save Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "unable to save" Watch "unable to save" New topic
Author

unable to save

fabian verbeek
Ranch Hand

Joined: Oct 20, 2012
Posts: 52
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

Joined: Oct 20, 2012
Posts: 52
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to save
 
Similar Threads
Path Value in input type in jsp page using Spring MVC
org.springframework.beans.NotReadablePropertyExcep tion: Invalid property
Backend validation - a complete example
Nested Model Class + ModelDriven + Struts 2
Implementing HttpSession in the Spring MVC