Data getting saved in session, but not being persisted in table.
mara thamizhan
Ranch Hand
Joined: Jul 05, 2006
Posts: 74
posted
0
Dear dudes, In persisting data in MySQL through hibernate, i'm using a simple java class , which creates an instance of my form , sets data , reads the configuration file, builds a session factory i.e. hibernate.cfg.xml , opens the session and save data . Actually data was not inserted into the table eventhough i'm getting the message similar to that.
I created the database in MySQL initially. message console:
My java application:"Testinghibernate.java"
Information.java
hibernate.cfg.xml:
Information.hbm.xml:
mara thamizhan
Ranch Hand
Joined: Jul 05, 2006
Posts: 74
posted
0
will someone please reply?
jayachandra madopothula
Greenhorn
Joined: Jan 08, 2008
Posts: 4
posted
0
Possible corrections you have to have work 1.If you are working in eclipse please check the application structure 2. remove the and run it.
jayachandra madopothula
Greenhorn
Joined: Jan 08, 2008
Posts: 4
posted
0
see the structure shown in the picture.
after arranging the whole structure just update resource mapping tag in hibernate.cfg.xml with absolute path of the hbm.xml