How do you create UserTransaction Object? How do you
rollback a transaction in a method?

Answer Posted / gnani

the user transactin object created using session
Transaction tx=session.beginTransaction();
the rollback is:
tx.rollback();

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of java collections? : java collections

547


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1684


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1821


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2542


What are the types of the main implementing classes in the map interfaces? : java collections

620






What are the different types of classes implemented in the set interfaces? : java collections

611


can u draw class/object diagram for ATM

5534


please mail me the interview question based on java/j2ee

1538


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1583


How is hashset maintained in memory by java ?

596


What are the different types of collections views being provided by the map interface? : java collections

616


What is the Spring2.5 MVC Navigation flow?

5378


What are the types of interface used in the java collections? : java collections

591


What are the main classes of the list interfaces? : java collections

580


What are the classes in the java collection framework? : java collections

599