Re: [castor-dev] Marshalling questions

2001-10-04 Thread Arnaud Blandin
Hi Victor, Actually it is not possible for both your question ;+(. Adding a DOCTYPE declaration in your XML should be possible in the future if we allow more acces to the serializer through Castor (like setting the indentation at runtime, setting the ecnoding, etc...). Arnaud -> -Original

Re: [castor-dev] Array Collections and JDO

2001-10-04 Thread Thomas Yip
>Am I totally misunderstanding what the 'array' collection mapping signifies, >or is there >a problem here? Array --> Object[] And, array is not support in Castor JDO. Thomas --- If you wish to unsubscribe from this mailing, send mail

Re: [castor-dev] oracle date whackiness

2001-10-04 Thread Matthew Baird
so just to be absolutely clear, we are using timestamp in the mapping for example (cut right from our mapping files) we are not converting the date to a string. what are you specifying as the column type in oracle for a datetime? btw:

Re: [castor-dev] Array Collections and JDO

2001-10-04 Thread Sudhir Bhojwani
Source code generator as you said does not generate the methods that JDO expects and so I ran into the sam eproblem, eneded up modifying a little bit of code... its not complete by any means but can be a good starting point. cheers, Sudhir -Original Message- From: Owen [mailto:[EMA

[castor-dev] Marshalling sequence of inherited class object

2001-10-04 Thread Subramanian Subramanian
Hi, When marshalling a Java object to XML I found that the fields of the parent Java class are output after the fields from the current class. Is there an easy way to reverse this. I want to ouput the fields from the base class first and then followed by the derived classes. Thanks. Subramanian

[castor-dev] Array Collections and JDO

2001-10-04 Thread Owen
Hi all, I have a feeling that I've got the wrong end of the stick entirely about this... I have a load of source generated by the sourcegen from a schema that I also want to persist. Given that the source generator, for whatever reason, made all the collection getters and setters in my classe

Re: [castor-dev] oracle date whackiness

2001-10-04 Thread Tim Fox
I'm using oracle (8.1.7) and using castor fine with timestamps. In your query bind using a java.util.Date eg. OQLQuery q = db.getOQLQuery("select ..."); q.bind(new java.util.Date()); etc. In your mapping.xml specify the field of interest as a timestamp type: That should work fine (

[castor-dev] SourceGenerator Bug Fixes for NMTOKENS and resetValue

2001-10-04 Thread Steve Vaughan
I have attached updates to two files within the SourceGenerator and one validator which address the following bugs: 1) When an XML Schema type of NMTOKENS is used, the generated code uses a NameValidator instance configured to validate a single NMTOKEN. By extending the NameValidator to accep

[castor-dev] Concurrent transaction problem.

2001-10-04 Thread Fran Martin
Hi I have a problem with the next code: JDO jdo = null; Database db = null; try{ jdo = new JDO(); jdo.setLogWriter( null ); jdo.setClassLoader( getClass().getClassLoader() ); jdo.setConfiguration( getClass().getResource(

Re: [castor-dev] oracle date whackiness

2001-10-04 Thread Matthew Baird
we definitely ARE doing the following, take the date, get the time (as long) and make a java.sql.timestamp and bind that to the castor token new java.sql.Timestamp(auditDate.getTime()) I'm not sure what is meant by castor "may" convert it, but I do know this: oracle needs dates in the format tha

[castor-dev] Using Castor inside an applet

2001-10-04 Thread Dusko Misic
Title: Using Castor inside an applet I am trying to use Castor for XML/Java marshalling and unmarshaling inside an applet. However, that does not work because during umarshaling following method gets called:     Configuration.loadProperties(...) That method attempts to read system prope

Re: [castor-dev] XML problems using inheritance in schema

2001-10-04 Thread Hedin, Mette
Title: RE: [castor-dev] XML problems using inheritance in schema Actually, I have for a long time been wondering what the expected behavior of extending a choice is supposed to be. If I have a content moel (A | B), and I extend it with (C | D) I would expect the resulting content model to be

[castor-dev] OQLQuery against char field in DB

2001-10-04 Thread STALLMANN, WAYDE (SBCSI)
Hi, My table has a char(5) field that is not always full. "CA " is a value in the table. When I search against the table using an OQLQuery like: OQLQuery query = db.getOQLQuery( "SELECT c FROM CodeValue c " + "WHERE value = $1" ); query.bind( "CA " ); // With 3 blanks I g

[castor-dev] Possible bug

2001-10-04 Thread Krishnan N
hi, was trying out Castor JDO (0.9.3) with oracle database. I have a column in a table which has datatype set to int. If i try to give the datatype as integer (as is given in the example program) in my mapping file for sql, i get an exception namely Exception in thread "main" java.lang.Abs

Re: [castor-dev] XML problems using inheritance in schema

2001-10-04 Thread Michel Dehennin
Arnaud, After some more testing and debugging we came to the conclusion that it's the combination of inheritence with a construction that causes castor to fail. I'd be glad to help, but I need some guidance of where to start for solving this bug. Regards, Michel

Re: [castor-dev] oracle date whackiness

2001-10-04 Thread Tim Fox
I agree - this doesn't look an Oracle problem to me. Much more likely you're using the wrong type in your code - use timestamp rather than date. > -Original Message- > From: Ilia Iourovitski [mailto:[EMAIL PROTECTED]] > Sent: 03 August 2001 23:51 > To: [EMAIL PROTECTED] > Subject: Re: [