Hibernate version: 3.0.5
Name and version of the database you are using: HSQLDB 1.8.0.0
Hallo Zusammen!
Herbante löscht die erstellten Datenbankschema nach einem session.close()., obwohl ich in der Konfiguration nur hbm2ddl.auto = create angebe. Kann jemand helfen?
Vielen Dank im Vorraus!
Franz^
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated file - Do not edit! -->
<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<!-- properties -->
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="show_sql">true</property>
<property name="use_outer_join">false</property>
<property name="connection.username">sa</property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:file:data/mediadb</property>
<property name="hbm2ddl.auto">create</property>
<!-- mapping files -->
<mapping resource="de/*******/mediadb/pojos/MediaTypePOJO.hbm.xml"/>
</session-factory>
</hibernate-configuration>
[/code]