Re: [castor-dev] Instantiating extension types using XML mapping

2003-02-24 Thread Naresh Bhatia
ML element, namely , but in fact are distinguished by their xsi:type attribute.   Thanks. Naresh -Original Message-From: Naresh Bhatia Sent: Saturday, February 22, 2003 11:21 PMTo: [EMAIL PROTECTED]Subject: [castor-dev] Instantiating extension types using XML mapping I

Re: [castor-dev] How to turn on logging?

2003-02-22 Thread Naresh Bhatia
Well, I did finally get the logging to work. For some reason a simple PrintWriter was not printing anything to the log: PrintWriter logWriter = new PrintWriter(new FileOutputStream("castor.log")); I had to create the PrintWriter using org.exolab.castor.util.Logger: PrintWriter logWriter = ne

[castor-dev] Instantiating extension types using XML mapping

2003-02-22 Thread Naresh Bhatia
Title: Instantiating extension types using XML mapping I am having trouble instantiating extension types using XML mapping. Castor is not able to instantiate extended types. Here's my schema:     xsd:complexType>  

[castor-dev] How to turn on logging?

2003-02-22 Thread Naresh Bhatia
Title: How to turn on logging? How do I turn on logging in Castor? I am calling setLogWriter( ) for my mapping and unmarshaller objects, but the generated log files are zero length - no log messages! PS. Does this have to do anything with JDO vs XML mapping? All references I found to logging

[castor-dev] Support for key / keyref in XML mapping

2003-02-16 Thread Naresh Bhatia
Is there any way to support keys / keyrefs in XML mapping approach? Here's a sample bookstore Schema that uses keyrefs. Orders can refer to many books, a book can be on many orders. In the Order object I just want to store the primary keys of the books on that order (their ISDN): http://www.book

Re: [castor-dev] Namespaces with Castor

2003-02-16 Thread Naresh Bhatia
Hi Keith, I tried out your suggestions but having a little trouble getting them to work, hope you can help. I am trying to achieve just one default namespace declaration at the document root: http://my.org/foo";> Approach 1 -- http://my.org/foo"/> ... This almost works b

Re: [castor-dev] Problem with collection of references

2003-02-12 Thread Naresh Bhatia
, In your class that maps to the element, have a way to get the list of meetings and don't mark that as references. Otherwise Castor will have no-idea where you want to put the "actual" meetings. --Keith Naresh Bhatia wrote: > > Hi Peter, > > Sorry, I am bit slow i

Re: [castor-dev] Problem with collection of references

2003-02-12 Thread Naresh Bhatia
- in the mapping.xml ... ... ... your output will be then something like ... ... hope this helps, Peter > ------ > Von: Naresh Bhatia[SMTP:[EMAIL PROTECTED]] > A

Re: [castor-dev] Problem with collection of references

2003-02-11 Thread Naresh Bhatia
:03 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Problem with collection of references Sounds like you don't want to be using references. Just remove reference="true" and make sure you use node="element". --Keith > Naresh Bhatia wrote: > > I a

[castor-dev] Problem with collection of references

2003-02-11 Thread Naresh Bhatia
Title: Problem with collection of references I am trying to create a collection of references using XML mappings, but running in to troubles. I have tried two approaches: Approach 1   attribute" reference="true"/> This gives me   ... Furthermore, the meeting objects are not ser