[castor-dev] Applying a pattern to the Date in XML Mapping

2004-05-11 Thread Milind Rao
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

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

[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