Je rencontre un problème de mapping pour ma webapp , j'ai une table (TacheTicket) contient deux cle primaire et dans le fichier mapping j met le code suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<hibernate-mapping>
    <class name="com.model.TacheTicket" table="TACHETICKET">
        <composite-id>
         <key-property name="idTache" column ="idTache" type="com.model.Tache"/>
         <key-property name="idTicket" column="idTicket" type="com.model.Ticket"/>
 
       </composite-id> 
    </class>
</hibernate-mapping>
mais quand j'execute le programme cette erreur apparaitre :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
org.hibernate.MappingException: Could not determine type for: com.model.Tache, at table: TACHETICKET, for columns: [org.hibernate.mapping.Column(idTache)]
	at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:269)
	at org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:120)
	at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:45)
	at org.hibernate.mapping.Component.buildType(Component.java:152)
	at org.hibernate.mapping.Component.getType(Component.java:145)
	at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
	at org.hibernate.mapping.RootClass.validate(RootClass.java:193)
	at org.hibernate.cfg.Configuration.validate(Configuration.java:1108)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1293)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)
	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
	... 21 more
si vous avez une idée , aider moi svp