Hibernate version: 3.0
Name and version of the database you are using:Oracle 9i
Hello there !
I use AppFuse for my application.
My problem append when I read a record in my database, I update it without modification (just for testing), I read it again in db with the same query and I have an InvocationTargetException on each property of a composite object.
Here is a part of the mapping of my class FacConsolidation.class with a composite id.
Code:
<composite-id name="id" class="com.myapp.model.facturation.FacConsolidationId">
<key-many-to-one name="facPlic" class="com.myapp.model.facturation.FacPlic">
<column name="IDPLIC" precision="6" scale="0" />
</key-many-to-one>
<key-property name="annee" type="integer">
<column name="ANNEE" precision="4" scale="0" />
</key-property>
<key-property name="mois" type="integer">
<column name="MOIS" precision="2" scale="0" />
</key-property>
</composite-id>
...
...
facPlic is an objet with an id and parameters.
I read it from my record of FacConsolidation (facConsolidation.getId().getFacPlic())
I'm able to read each properties of FacPlic object before updating but only its id after the update; I have an invocationTargetException.
Thanks for those who will read...and answer to this problem.