-->
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.  [ 1 post ] 
Author Message
 Post subject: property mapping has wrong number of columns, type: object
PostPosted: Tue Apr 19, 2005 10:51 pm 
Newbie

Joined: Tue Sep 14, 2004 1:16 pm
Posts: 7
Hibernate version: Hibernate2

Mapping documents:
<class
name="com.model.xmlDoc"
table="PRE_AL_RFA"
>
<meta attribute="class-description" inherit="false">
@hibernate.class
table="XML_DOC"
</meta>

<id
name="docNumber"
type="java.lang.String"
column="DOC_NUMBER"
>
<meta attribute="field-description">
@hibernate.id
generator-class="assigned"
type="java.lang.String"
column="DOC_NUMBER"


</meta>
<generator class="assigned" />
</id>

<property
name="docxml"
type="java.lang.Object"
column="DOCXML"
length="2147483647"
>
<meta attribute="field-description">
@hibernate.property
column="DOCXML"
length="2147483647"
</meta>
</property>

<!-- Associations -->


</class>
</hibernate-mapping>

Middlegen is mapping the DOCXML column (CLOB in the database) as java.lang.Object.

I'm getting this error when when starting the server:

net.sf.hibernate.MappingException: property mapping has wrong number of columns: com.model.xmlDoc.docxml type: object

How to resolve this?

Thank you


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

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.