File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes data not persisted using hibernate spring integration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "data not persisted using hibernate spring integration" Watch "data not persisted using hibernate spring integration" New topic
Author

data not persisted using hibernate spring integration

Vikram Kohli
Ranch Hand

Joined: Nov 27, 2005
Posts: 174
Hi All,

I am trying to integrate vaadin with hibernate and spring. Data is getting persisted for the first time when I run my application. But second time when I run the application, data gets deleted from DB(mysql) table. Please help me to solve the issue.

Following is all related code:-

Domain class user



DaoImpl class


Spring config. file(applicationContext class)


Vaadin main class


Please provide some input to solve this issue.I am using hibernate version 3.6.0 and Spring version 3.0.4 and MySQL as Database.

Regards,
Vikram


Vikram PracLabs
Vikram Kohli
Ranch Hand

Joined: Nov 27, 2005
Posts: 174
hurray........I have found it..........

commenting out <prop key="hibernate.hbm2ddl.auto">create</prop> in spring config. have done the thing for me.

Vikram
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: data not persisted using hibernate spring integration
 
Similar Threads
HibernateDaoSupport and Transaction
org.hibernate.MappingException: Unknown entity:
Transactions in Spring + Hibernate
Spring and Hibernate problem
Simple navigation rule