>> >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
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
>> 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...
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,
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