[ chiki-Bugs-804940 ] mapping.xml for castor object mapping wrong?

"SourceForge.net" <[email protected]> Fri, 12 Sep 2003 02:08:13 -0700
Newsgroups gmane.comp.java.chiki.devel
Message-ID <[email protected]>
Bugs item #804940, was opened at 2003-09-12 11:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402696&aid=804940&group_id=31605

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Kehren (kehren)
Assigned to: Nobody/Anonymous (nobody)
Summary: mapping.xml for castor object mapping wrong?

Initial Comment:
I changed the original mapping.xml to the following (the 

new parts are <map-to> elements):

<class name="org.emaho.chiki.wiki.SimpleUser">

    <map-to xml="user" />

	<field name="userId" type="java.lang.String">

        <bind-xml name="user-id" node="element"/>

    </field>

	<field name="password" 

type="java.lang.String">

        <bind-xml name="password" node="element"/>

    </field>

	<field name="email" type="java.lang.String">

        <bind-xml name="email" node="element"/>

    </field>

</class>



<class name="org.emaho.chiki.wiki.RegisteredUsers">

    <map-to xml="users" />

    <field name="RegisteredUsers" 

type="org.emaho.chiki.wiki.SimpleUser" collection="map">

    </field>

</class>



So, the users.xml contains elements like:



<users>

  <user>

    <user-id>...</user-id>

    ...

  </user>

</users>



I don't know, how it should work before. The castor 

description uses the <map-to> element always.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402696&aid=804940&group_id=31605


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf