View Single Post
  #7 (permalink)  
Old 05-04-2008, 10:17 AM
sarava20 sarava20 is offline
Member
 
Join Date: May 2008
Posts: 2
sarava20 is on a distinguished road
Problem with First Hibernate program
Hi Sireesha,

i guess this cud be a prob,

Comment the following tag in *.cfg.xml(hibernate.cfg.xml)

<!-- Drop and re-create the database schema on startup
<property name="hbm2ddl.auto">create</property>
-->
while u execute ur program , Create means each and every time all the tables are dropped and re create again...so just comment while u execute ur application second time onwards.

Thanks
Saravanan
Mindtree-Chennai
sarava20@gmail.com
Reply With Quote