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
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
can u draw class/object diagram for ATM
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
Which interface does java.util.hashtable implement?
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 ?
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
How do I find jre path in windows?
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 are the main classes of the list interfaces? : java collections
please mail me the interview question based on java/j2ee
What is the use of hashcode in java ?
What is the Spring2.5 MVC Navigation flow?
What are the types of the main implementing classes in the map interfaces? : java collections
what is mean by hasing and maping in java platform and advantage?
How is hashset maintained in memory by java ?