Salut,

j'ai une exception de crée sur l'execution d'un HQL avec le plugin hibernateSynchronizer d'eclipse. j'ai bien mit les jar de jodatime dans le classpath du plugin.

le mapping et la conf sont bien charger.

voila l'exception :
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
17
18
19
20
21
22
23
!MESSAGE Exception while executing HQL Query
!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2007-09-27 09:37:35.473
!MESSAGE org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of fr.xxx.xxx.xxx.xxx.model.bean.Regate.debutValidite
!STACK 0
org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of fr.xxx.xxx.xxx.xxx.model.bean.Regate.debutValidite
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:104)
	at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:337)
	at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:200)
	at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3499)
	at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129)
	at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
	at org.hibernate.loader.Loader.doQuery(Loader.java:717)
	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
	at org.hibernate.loader.Loader.doList(Loader.java:2157)
	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2041)
	at org.hibernate.loader.Loader.list(Loader.java:2036)
	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
	at org.hibernate.console.HQLQueryPage.getList(HQLQueryPage.java:49)
	at org.hibernate.eclipse.console.views.QueryPageViewer$ContentProviderImpl.getElements(QueryPageViewer.java:110)
le bean :
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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
package fr.xxx.xxx.xxx.xxx.model.bean;
 
import org.joda.time.contrib.hibernate.PersistentDateTime;
 
/**
 * Regate Bean conteneur en lecture de la base xxx.
 */
public class Regate implements java.io.Serializable {
 
...    
    /**
     * La date de début de validite de la regate.
     */
    private PersistentDateTime leDebutValidite;
... 
    /**
     * @return the debutValidite
     */
    public PersistentDateTime getDebutValidite() {
        return leDebutValidite;
    }
...
    /**
     * @param unDebutValidite
     *            the debutValidite to set
     */
    public void setDebutValidite(final PersistentDateTime unDebutValidite) {
        leDebutValidite = unDebutValidite;
    }
...
}
le mapping :
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
17
 
<?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>
<class name="fr.xxx.xxx.xxx.xxx.model.bean.Regate" ... >
		<id name="code" type="string">
...
		</id>
...
		<property name="debutValidite"
			type="org.joda.time.contrib.hibernate.PersistentDateTime">
			<column name="P_DDVAL" length="23" not-null="true" />
		</property>
...	
</class>
</hibernate-mapping>
merci d'avance pour votre aide.