How do you create UserTransaction Object? How do you
rollback a transaction in a method?
Answer / 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 |
What are the uses of the set interfaces in the java collections? : java collections
What are the considerations to be made in case of loops in java ?
How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }
How to implement or use the singleton class in java?
How many controlers are there in spring? Plz send me ans
What are the different types of features of the java collections framework? : java collections
when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling
what is hibernate ceteria ?
What is difference between Application Server and Web Server?
what is filter ?
Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...
what is mean by hasing and maping in java platform and advantage?