Re: [castor-dev] Very Urgent : Support for interfaces

2001-11-08 Thread Oliver Hutchison
you *don't* have to use the concrete type for the field value but you *do* have to use a concrete type (obviously one that implements the field type) in the mapping file. the upshot of this is that you cant have more than one concrete class for your interface if you want to use it with castor. bu

Re: [castor-dev] using specific array types with lazy loading

2001-11-08 Thread Brett Porter
Title: using specific array types with lazy loading will Castor in the future support any sort of ordering of collection elements (with arraylist, array, etc), whether it be with lazy loading or not?   Thanks, Brett -Original Message-From: Thomas Yip [mailto:[EMAIL PROTECTED]]Se

Re: [castor-dev] using specific array types with lazy loading

2001-11-08 Thread Thomas Yip
Title: using specific array types with lazy loading   You can only use java.util.Collection for lazy loading.       Thomas   -Original Message- >From: Brett Porter [mailto:[EMAIL PROTECTED]] >Sent: Thursday, November 08, 2001 2:35 PM >To: [EMAIL PROTECTED] >Subject: [cas

Re: [castor-dev] Descriptor names

2001-11-08 Thread Arnaud Blandin
Take a look in DescriptorSourceFactory.java Hope this helps, Arnaud -> -Original Message- -> From: michael robkin [mailto:[EMAIL PROTECTED]] -> Sent: Thursday, November 08, 2001 2:03 PM -> To: [EMAIL PROTECTED] -> Subject: [castor-dev] Descriptor names -> -> -> -> Where in the code(se

Re: [castor-dev] Castor Bug 0.9.3 : attribute names mixed-up within types.* package

2001-11-08 Thread Arnaud Blandin
Hi Elian, This is a known issue, a temporary solution is to split your schema in different schemas (using different namespaces). It is a pain, I confess. The other solution is to wait for the SourceGenerator Binding File but unfortunately we have no release date for it available. Hope this hel

[castor-dev] using specific array types with lazy loading

2001-11-08 Thread Brett Porter
Title: using specific array types with lazy loading Hi, I get this exception: java.lang.ClassCastException: org.exolab.castor.persist.RelationCollection when lazy loading: and Collection featuredProducts = new ArrayList(); and I try to: ArrayList list = (ArrayList) featuredProd

Re: [castor-dev] what is wrong with not mapping one side of many-to-many?

2001-11-08 Thread Thomas Yip
Unidirectional relationship is not support. Thomas -Original Message- >From: Dieter Cailliau [mailto:[EMAIL PROTECTED]] >Sent: Thursday, November 08, 2001 1:49 AM >To: [EMAIL PROTECTED] >Subject: [castor-dev] what is wrong with not mapping one side of many-to-many? > >i'm trying to m

Re: [castor-dev] Class cast and child class

2001-11-08 Thread Thomas Yip
The jdoLoad() behavior is deprecated. The original support of polymorphic method is removed. Please search the mail archive. Thomas -Original Message- >From: Gollot [mailto:[EMAIL PROTECTED]] >Sent: Thursday, November 08, 2001 6:20 AM >To: [EMAIL PROTECTED] >Subject: [castor-dev] Clas

Re: [castor-dev] Localizable error/warning messages...

2001-11-08 Thread Thomas Yip
  It would be definitely a great contribution, if somebody willing to move all error messages back to the messages.properties. It is where they should go. Thank ahead!  J       Thomas     -Original Message- >From: Vijay Raghavendra [mailto:[EMAIL PROTECTED]] >Sent: Wednesd

Re: [castor-dev] A small request to the source generator developers

2001-11-08 Thread Arnaud Blandin
Hi Jeff, We'll take care of it while revising the Schema Object Model. For the time being, feel free to modify the code for your internal use. Arnaud -> -Original Message- -> From: Jeff Norris [mailto:[EMAIL PROTECTED]] -> Sent: Wednesday, November 07, 2001 10:38 AM -> To: [EMAIL PROTE

Re: [castor-dev] lazy="true" results in exception

2001-11-08 Thread Thomas Yip
It probably a newly reported bug. Thank for reporting. Thomas -Original Message- >From: Dieter Cailliau [mailto:[EMAIL PROTECTED]] >Sent: Thursday, November 08, 2001 7:52 AM >To: [EMAIL PROTECTED] >Subject: [castor-dev] lazy="true" results in exception > >I have an applicatoin that w

Re: [castor-dev] Dates formats for the unmarshalling

2001-11-08 Thread Arnaud Blandin
Hi Aldo, CAstor is supporting all XML Schema date/time types as long as you use the SourceGenerator. If you are not using XML schemas with Castor but still want to parse special date format, you have to modify the codetake a look at org.exolab.castor.xml.handlers.DateFieldHandler, it might

Re: [castor-dev] MappingException

2001-11-08 Thread Thomas Yip
Borries, I think you should put "collection" in the mapping instead of vector for your case. Thomas >direct="true" collection="collection"> -Original Message- >From: Matthew Baird [mailto:[EMAIL PROTECTED]] >Sent: Thursday, November 08, 2001 12:55 PM >To: [EMAIL PROTECTED] >Subje

Re: [castor-dev] Carriage Returns and the indent property.

2001-11-08 Thread Arnaud Blandin
Hi Matt, you could instantiate your own serializer (take a look at org.apache.xml.serialize) and pass it to the Marshaller of Castor. Arnaud -> -Original Message- -> From: Matt Small [mailto:[EMAIL PROTECTED]] -> Sent: Tuesday, November 06, 2001 11:26 AM -> To: [EMAIL PROTECTED] -> Sub

Re: [castor-dev] XML Parser

2001-11-08 Thread Arnaud Blandin
Castor is shipped with Xerces 1.4.0 but you can select the parser you want to use in the properties file. Arnaud -> -Original Message- -> From: Roshani Bhatt [mailto:[EMAIL PROTECTED]] -> Sent: Monday, November 05, 2001 3:07 PM -> To: [EMAIL PROTECTED] -> Subject: [castor-dev] XML Parser

Re: [castor-dev] Unmarshall XML data

2001-11-08 Thread Arnaud Blandin
Hi Xavier, you can use a mapping file to skip the elements you don't want to unmarshall (search in the mailing list, it has been asked several times) or you can use an XSL stylesheet before passing your XML to Castor. Arnaud -> -Original Message- -> From: sl151-6 [mailto:[EMAIL PROTECT

Re: [castor-dev] Can I turn exceptions off in castor?

2001-11-08 Thread Arnaud Blandin
-> -Original Message- -> From: Søren Neigaard [mailto:[EMAIL PROTECTED]] -> Sent: Monday, November 05, 2001 5:08 PM -> To: [EMAIL PROTECTED] -> Subject: [castor-dev] Can I turn exceptions off in castor? -> -> -> When I do a "Marshaller.marshal" castor prints out a lot of exceptions ->

[castor-dev] Descriptor names

2001-11-08 Thread michael robkin
Where in the code(setup?) does castor name the Descriptor classes. Could the name be changed? For example Date_Written.java Date_WrittenDescriptor.jav Date_Written name comes from schema. Date_WrittenDescriptor comes from castor. ---