IllegalArgumentException occurred calling getter
Bonjour,
J'ai une exception "IllegalArgumentException occurred calling getter" et je n'arrive pas a comprendre d'ou cela vient.
Voila mon mapping :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <hibernate-mapping>
<class name="com.fdilogbox.val2000mapping.bean.Paramfp" table="Paramfp">
<meta attribute="generated-class">com.fdilogbox.val2000mapping.bean.base.Paramfp</meta>
<composite-id class="com.fdilogbox.val2000mapping.bean.ParamfpPK" name="id">
<meta attribute="generated-class">com.fdilogbox.val2000mapping.bean.base.ParamfpPK</meta>
<key-many-to-one class="com.fdilogbox.val2000mapping.bean.Filfdip" name="filiale" column="obnumfillb"/>
<key-property name="code_parametre" type="string">
<column length="10" name="obcodparpf"/>
</key-property>
<key-property name="num_ordre" type="integer">
<column name="obnumorpf"/>
</key-property>
</composite-id>
....
</class>
</hibernate-mapping> |
L'exeption vient lorsque je fais une recherche via ma classe DAO :
Code:
1 2 3 4 5
| Criteria criteria = getSession().createCriteria(Paramfp.class);
criteria.add(Property.forName("id.filiale").eq(num_fil));
criteria.add(Property.forName("code_parametre").eq(parametre));
return criteria.list(); |
Le debugger sur la classe "org.hibernate.property.BasicPropertyAccessor$BasicGetter.get" me donne :
Target : "ARBITRAGE"
Clazz : class com.fdilogbox.val2000mapping.bean.base.ParamfpPK
property name : "filiale"
Le plus etonnant c'est que la valeur de la target ne correspond pas a l'attribut "filiale" mais a l'attribut "code_parametre".
Une idée du problème?
Ps: je tourne sur la version 3.5.3-Final d'Hibernate