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
What are the different types of ways where you can iterate over a list? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
can u draw class/object diagram for ATM
What is the use of hashcode in java ?
What is the Spring2.5 MVC Navigation flow?
What are the different types of collections views being provided by the map interface? : java collections
What is the difference between comparable and comparator in java.util pkg?
What are the classes in the java collection framework? : java collections
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.?.
What is the use of the list interface in the java collection? : java collections
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
Which sorting algorithm is used by collections.sort() in java ?
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
How do I find jre path in windows?
What are the interfaces in java collections? : java collections