I have used hibernate along with oracle to create some project… I had many mappings in it.. After mapping when i execute the program then it works Nicely but whn i reexecute the program then my tables get cleared… any idea y?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
somewhere in your config you have a property called
hibernate.hbm2ddl.autoset to the valuecreateorcreate-drop. Just delete that property or assign the valuedo_nothing.If you set that property to an invalid value (such as
do_nothing), hibernate doesn’t do anything.You can check the documentation of that property here.