Home Tutorialhelp Comment Solution to insertion problem in firstexample.java

 
 

Comment

Sunaina
Solution to insertion problem in firstexample.java,
October 31, 2008 at 2:10 PM

After sessionfactory.opensession() method, add below line:
Transaction trx = session.beginTransaction();
and
After session.save(contact) method, add below line:
trx.commit();

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com