Right, in fact, yesterday, I have tried almost evry possibility and when I have restart my eclipse, the system worked...
But my next problem is the following :
Bonjour,
I have a config file like that :
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:/home/yannmauron/toxico_db</property>
<property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>
a mapping file as :
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="com.genebio.toxico.compound">
<class name="CompoundImpl" table="COMPOUND">
<id name="id" type="int" column="COMPOUND_ID">
</id>
<property name="cid" type="string" column="COMPOUND_CID"/>
<property name="SMILE" type="string" column="COMPOUND_SMILE"/>
</class>
</hibernate-mapping>
But when I run my hibernate console, it says :
Code:
org.hibernate.MappingException: entity class not found: com.genebio.toxico.compound.CompoundImpl
org.hibernate.MappingException: entity class not found: com.genebio.toxico.compound.CompoundImpl
java.lang.ClassNotFoundException: com.genebio.toxico.compound.CompoundImpl
My file architecture is like that
src
->config.cfg.xml
->com.genebio.toxico.compound
->->CompoundImpl.java
->->CompoundImpl.hbm.xml
I cannot understant why it doesn't found the class, because the class exist... any idea ?