Hi, when I do DataObjects.getDatabase() I've got following exception:
[Contract] java.lang.IllegalArgumentException: Identity field must be of type JDOFieldDescriptor
What it means?
My mapping file is:
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
 <class name="com.ezan.contract.ContractStore" identity="contract_no">
  <map-to table="contract_tbl"/>
  <field name="contract_no" type="string"/>
  <field name="c_name"/>
  <field name="stages" collection="collection" type="com.ezan.contract.StageStore"/>
 </class>
 <class name="com.ezan.contract.StageStore" identity="contract_no stage_no" depends="com.ezan.contract.ContractStore">
  <map-to table="stages_tbl"/>
  <field name="contract_no" type="string"/>
  <field name="stage_no" type="integer"/>
  <field name="s_name"/>
  <field name="sum_rub"/>
  <field name="dat_act"/>
 </class>
</mapping>
Thank you.

Reply via email to