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 different types of ways where you can iterate over a list? : java collections

740


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2748


can u draw class/object diagram for ATM

5748


What is the use of hashcode in java ?

775


What is the Spring2.5 MVC Navigation flow?

5717






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

775


What is the difference between comparable and comparator in java.util pkg?

786


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

793


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.?.

2026


What is the use of the list interface in the java collection? : java collections

777


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1788


Which sorting algorithm is used by collections.sort() in java ?

718


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1795


How do I find jre path in windows?

712


What are the interfaces in java collections? : java collections

826