Hi there,
This is in relation to my previous post (re: hibernate.hbm2ddl.auto) but I thought to start a new
thread and present the question in a different way. Maybe "hibernate.hbm2ddl.auto" has nothing to do with the issue I have.
The issue is that when I run my main method to
test this simple Hibernate sample, all existing data in the table
Honey is deleted. Following is my hibernate.cfg.xml. Could someone please tell me which property is causing the exiting data in the table to be deleted?
Here is my test class:
Here is what I see when I run the main method of my test class:
Look at the last line in output above -
0 row(s) found. There were few existing rows but after this run, they are gone. Not sure what is causing this.
Please look at lines 113-116. Since I have completely removed "hibernate.hbm2ddl.auto" property, what is causing this output now? Is it due to this part that my existing data is being deleted?
I am using Hibernate 3.3.1 and MySQL and perhaps needless to mention that I am a Hibernate-newbie.
Regards,
Saeed