Hello all,
I have this cfg file
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">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="hibernate.connection.url">jdbc:hsqldb:mem:testdb</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<property name="hibernate.hbm2ddl.auto">create-drop</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<mapping resource="com/mamatkon/maserver/db/hibernate/hbm/Ingredients.hbm.xml"/>
<mapping resource="com/mamatkon/maserver/db/hibernate/hbm/MeasuringUnits.hbm.xml"/>
<mapping resource="com/mamatkon/maserver/db/hibernate/hbm/RecipeIngredients.hbm.xml"/>
<mapping resource="com/mamatkon/maserver/db/hibernate/hbm/Recipes.hbm.xml"/>
</session-factory>
</hibernate-configuration>
but when I do save on one of my objects
I get
Code:
Caused by: java.sql.SQLException: Table not found: RECIPES in statement [insert into recipes (id, title, instructions, source, servings) values (null, ?, ?, ?, ?)]
I also tried do
Code:
new SchemaExport(config).create(true, true);
but with no luck
what can I do ? I'm going nuts here !!
thanx
Eli