Hibernate version: 3.1.3
Mapping documents: hibernate.cfg.xml
Code:
<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>
Name and version of the database you are using: PostgreSQL 8.2
Hi everybody!
I have a class that load the data into the database and another one that looks into it and shows the data. When I run the first one, hbm2ddl.auto property is as above. When I run the second one, I must delete that cfg entry, otherwise my program drops the table, re-creates it (empty) and shows nothing (of course).
My question is:
Is it necessary for me to change everytime the config file or is there another way???