I am recieving the folloing error
Quote:
net.sf.hibernate.MappingException: property mapping has wrong number of columns: com.fmr.xtrac.hibernate.TTkalArchWorkItemXML.wiXml type: object
this is my mapping file
Code:
[code]<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->
<class
name="com.fmr.xtrac.hibernate.TTkalArchWorkItemXML"
table="T_TKAL_ARCH_WORK_ITEM_XML"
>
<id
name="fileN"
type="java.math.BigDecimal"
column="FILE_N"
>
<generator class="assigned" />
</id>
<property
name="wiXml"
type="java.lang.Object"
column="WI_XML"
not-null="true"
length="86"
/>
<!-- associations -->[/code]
</class>
</hibernate-mapping>
I think the problem is that wiXML is of type object and as a result does not implement Serializable
Any ideas on how to resolve this issue