-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: property mapping has wrong number of columns:
PostPosted: Tue Jun 28, 2005 7:07 am 
Newbie

Joined: Mon Jun 13, 2005 5:14 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 28, 2005 7:54 am 
Regular
Regular

Joined: Thu Apr 29, 2004 5:08 pm
Posts: 56
Location: Montreal, Quebec, Canada
Hum... I wonder why you map the property as being of type Object...

It sounds not related to the exception your receive, but mapping to the class Object is so weird by itself it could lead to weird exceptions too, I guess.

Let me know about it,

_________________
- Frank


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.