Re: [castor-dev] Need some help in XML Mapping

2004-04-08 Thread Milind Rao
>> >You can do that in the XML Mapping file... >> > >> >add reference="true" to the field mapping as such: >> > >> > >> > >> > >> > >> >and make sure you mark the identity field for the test.Level class >> >mapping: >> > >> > >> >> That didn't work. I get a mapping exception >> "No field desc

Re: [castor-dev] Need some help in XML Mapping

2004-04-07 Thread Keith Visco
Milind Rao wrote: > > >> 1. What I'd like to get on Marshalling a Member is an XML that looks like > >> > >>ie. I want the level ID, not the Level object. Do I have to write my own > >> FieldHandler for this > >>or is there some way to do this in the XML Mapping file? > > > >You c

Re: [castor-dev] Need some help in XML Mapping

2004-04-07 Thread Milind Rao
>> 1. What I'd like to get on Marshalling a Member is an XML that looks like >> >>ie. I want the level ID, not the Level object. Do I have to write my own >> FieldHandler for this >>or is there some way to do this in the XML Mapping file? > >You can do that in the XML Mapping file...

Re: [castor-dev] Need some help in XML Mapping

2004-04-06 Thread Keith Visco
Milind Rao wrote: > > I just started using Castor to convert Objects to XML and back and have a couple of > questions > > I have the following Objects > > public class Member > { > private int iID > private Level iLevel; > > // Constructor is package-private > Member(theMID,

[castor-dev] Need some help in XML Mapping

2004-04-06 Thread Milind Rao
I just started using Castor to convert Objects to XML and back and have a couple of questions I have the following Objects public class Member { private int iID private Level iLevel; // Constructor is package-private Member(theMID, int theLID) {iID = theID; iLevel = new Level(t