1. Help creating single transaction from a series of db actions forum.hibernate.orgI had a hard time searching for a similar topic so I'm posting a new one. My application uses hbm.xml files for hibernate objects and hibernate 3. There is a large form the user fills out and after it validates, the series of database procedures begins. A service method processes the form model object and : 1. a parent object is ... |
2. Hibernate transaction can not work in the struts.action? forum.hibernate.orgHi everyone: I write some insert data transaction code into the action class of strue. But the jsp page throw these Errors. my application server is : Tomcat 5.0 my database is MySQL and also using struts 1.1. java.lang.NoClassDefFoundError: javax/transaction/Synchronization net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:310) net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:323) net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:331) org.greenpinaster.hr.action.EmpAction.beginTransaction(Unknown Source) org.greenpinaster.hr.action.EmpAction.execute(Unknown Source) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) my hibernate.cfg.xml file: |
3. DEMO AdminApp: Transaction are not closed for each action? forum.hibernate.orgHi, I am new to hibernate and working on my first implementation on an real-world community / techNet website ... someday :) I have taken a look at the demo app provided by Hibernate and have the following question about it: In the class CreateUserAction, the following piece of code occurs: getSession().save(user) -> no closure of the transaction So I understand ... |
4. Hibernate ni Action - MEAP Chapter 5 (Transactions)? forum.hibernate.org |
5. Transaction over several actions forum.hibernate.orgMaybe I didn't read good enough the manual, but how can I make an application data to be commited to the DB after several user actions? What do I need: I am using struts for a web application and I want to collect the data from the user input from several forms and then save it in the DB. At the ... |