mumbaimuru wrote:
May be id value is not intialized. If you post mapping file and code then would be help for resolve this issue?
Dear Muru
Following is the xml which when added gives me the exception
<hibernate-mapping>
<class name="clientStock" table="clientstock_tbl">
<id name="productId" type="int" column="productId" >
<generator class="foreign"/>
</id>
<property name="reorderLevel">
<column name="reorderLevel"/>
</property>
<property name="quantity">
<column name="quantity"/>
</property>
</class>
</hibernate-mapping>
Regards
Vikram