I have a date attribute in a class that I want to marshal in XML in a certain date
pattern "mm/dd/ HH:mm",
which is different than the ISO 8601 format of -MM-DDTHH:MM:SS. (plus a
timezone offset). Is
this possible?
Currently I have the mapping as
This gener
>> >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
>> 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...
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