-->
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: List mapping with "use-in-tostring", schemaexport
PostPosted: Tue Jul 06, 2004 12:36 pm 
Beginner
Beginner

Joined: Wed Jun 23, 2004 12:37 pm
Posts: 20
I'm trying to get the codegen tool to include the recipientList member in the toString() method. My mapping looks like this

<list name="recipientList" table="recipient_list">
<key column="message_id" />
<index column="position"/>
<element column="number" type="string" length="20" />
<meta attribute="use-in-tostring">true</meta>
</list>

Codegen works OK and creates the toString() method correctly but Schemaexport fails with:

[schemaexport] BUILD FAILED: file:C:/Projects/.../build.xml:45: Schema text failed: net.sf.hibernate.MappingException: invalid mapping

If I remove the meta attribribute scemaexport works.

Hib version 2.1.4
MySql 4.0.18


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 08, 2004 11:16 am 
Beginner
Beginner

Joined: Wed Jun 23, 2004 12:37 pm
Posts: 20
I've re-posted this in Tools area.


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.