Bonjour,

Je suis assez nouveau dans le monde d'hibernate et ai encore quelques problèmes. J'ai fait un fichier de config valide, mais ai quelques soucis avec mon fichier de mapping. Voila le fichier en question :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
<?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" column="COMPOUND_ID">
            <generator class="native"/>
        </id>
        <property name="cid" type="string" column="COMPOUND_CID"/>
        <property name="SMILE" type="string" column="COMPOUND_SMILE"/>
    </class>
</hibernate-mapping>
Mais quand je lance ma console hibernate sous eclipse, elle me dit :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
org.hibernate.MappingException: invalid mapping
org.hibernate.MappingException: invalid mapping
org.xml.sax.SAXParseException: Element "class" requires additional elements.
Une idée ?