The tool cant generate a Sessionfactory:
Sessionfactory error: Entity class not found: ...
I know that this topic has already been discussed!
But the solutions which were pointed out there i already mentioned
1. Ive added the Output path to the "Hibernate Console Configuration" (it was automaticly there)
2. The class has been generated and is at the right position in the Output ("/bin") Directory!
3. The hsql driver (1.8.x) is in the "Hibernate Console Configuration" (this has nothing to do with the error? Or?)
The Classes are generated well but no session factory is there and my HSQL Database is emty too!
Im using a new installation (3.2.0) of Eclipse with WTP (to be more precise: wtp-all-in-one-sdk-R-1.5.0-200606281455-win32.zip).
And im using "HibernateTools-3.2.0.beta7.zip".
I (only) use these 2 files (do i need another one??) :
hibernate.cfg.xml:
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.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="hibernate.connection.url">jdbc:hsqldb:hsql:/data/database</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
<mapping resource="prozesshaus/Test.hbm.xml" />
</session-factory>
</hibernate-configuration>
Test.hbm.xml
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="prozesshaus">
<class name="Test" table="T_Test">
<id name="id" type="integer">
<column name="id" />
<generator class="identity" />
</id>
<property name="vorname" type="string" length="30" />
<property name="nachname" type="string" length="30" />
<property name="geburtsdatum" type="date" />
<property name="strasse" type="string" length="30" />
</class>
</hibernate-mapping>
I read:
http://www.hibernate.org/hib_docs/tools ... gle/#d0e23
Thanks very much for your help!!!
Jan