Re: [castor-dev] Help, How do I clear the object in memory

2003-09-24 Thread Stein M. Eliassen
Zhenwei LI wrote: > > I have wrote a server side back end program using JMS to transfer data and castor > to persist. It sleeps every 30 min, and do a send and receive. And it supposely > ran day and night. > > I use castor to retrieve object from database A, and send to database B, and then,

[castor-dev] org.exolab.castor.persist.AddObjectEntry

2003-09-24 Thread Stephen Ince
I have a performance and functionality question regarding  org.exolab.castor.persist.addObjectEntry and org.exolab.castor.persist.removeObjectEntry methods.    I was doing some profiling and I noticed that I was spending a lot of time in these two functions. It was cycling through the entir

[castor-dev] Help, How do I clear the object in memory

2003-09-24 Thread Zhenwei LI
I have wrote a server side back end program using JMS to transfer data and castor to persist. It sleeps every 30 min, and do a send and receive. And it supposely ran day and night. I use castor to retrieve object from database A, and send to database B, and then, the object is changed in data

[castor-dev] Mapping classes to SQL tables

2003-09-24 Thread Pierfrancesco Marsiaj
Hi all, I need to reiterate a question for which I haven't been able to find an answer. In Castor JDO there seems to be a mandatory pattern usage when mapping classes to SQL tables: for each class you have to provide one SQL table. Is it possible to do differently, i.e. map two or more related

[castor-dev] Key generation for XML only (not using JDO)

2003-09-24 Thread robertlaferla
I have a project that doesn't use JDO but needs keys generated. I see support for automatic key generation if you use JDO but is there any support if you are not using JDO? I need keys for objects that will be xlinked and internal objects (ID/IDREF). -

[castor-dev] [JDO] Date Mapping: Java Date being stored without time in Oracle

2003-09-24 Thread Konrad
Hello. When a class field has the java.util.Date type, does Castor store the time with the date as well? We are using Oracle9i, and I have the following Castor mapping: However, in the database, the HH:mm:ss is appearing as 00:00:00 (or not appearing at all, d

[castor-dev] Re: Marshaller output

2003-09-24 Thread robertlaferla
Never mind. I found the castor.properties file and the option to enable indent. > We are considering using Castor for a project. However, I need the Marshaller > to generate human > readable output (indented, newlines, etc..) I think this is a feature request > but perhaps someone > can recom

Re: [castor-dev] Is it strange or not ?

2003-09-24 Thread Stein M. Eliassen
Michel Bertrand wrote: Hi ! This is my mapping : Photo As Alexey mentioned, you must have a key-generator: Stein --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscr

Re: [castor-dev] Marshalling an interface

2003-09-24 Thread Keith Visco
Pawel, Normally Castor likes to make sure it can "unmarshal" the marshalled instance (round-trip: java->xml->java), but, if you only care about the marshalling, then you can take a look at this tip, it should help: http://www.brainopolis.com/castorwiki/Wiki.jsp?page=Constructable --Keith Pawe

Re: [castor-dev] Castor XML : How to programaticaly process types?

2003-09-24 Thread Keith Visco
Henry, You can implement an org.exolab.castor.xml.XMLClassDescriptor for java.util.Date and then register this with the ClassDescriptorResolver before processing: import org.exolab.castor.xml.ClassDescriptorResolver; import org.exolab.castor.xml.util.ClassDescriptorResolverImpl; ClassDescriptor

Re: [castor-dev] HELP NEEDED!! - [castor-dev] Castor on OS/390-USS => "An invalid XMLcharacter (Unicode: 0x14)was found..."

2003-09-24 Thread Keith Visco
This may help, try setting the encoding to ISO-8859-1, as in the following example: http://castor.exolab.org/xml-faq.html#How-do-I-set-the-encoding? --Keith Rajeev Koolath wrote: > > Hi, > I saw the discussion thread at the castor mailing archive. > http://www.mail-archive.com/[EMAIL

Re: [castor-dev] Marshaller output

2003-09-24 Thread Keith Visco
Just edit the castor.properties file: org.exolab.castor.indent=true --Keith Arnaud Blandin wrote: > > Hi Robert, > > Castor is using the Apache XML Serializer to output XML. You can > configure it to output the XML you want (indent, etc...). > However you can plug other serializers to use t

Re: [castor-dev] Does CASTOR-XML Source Generator read PATTERN from a Scheam?

2003-09-24 Thread annie . hwang
Thanks, Arnaud. Yes. Saw the validation code against but Pattern. But Patterns provided by schema simple type are not in any generated Java classes. What do I miss? Annie |-+> | | "Arnaud Blandin" | | | <[EMAIL PROTECTED]

Re: [castor-dev] Is it strange or not ?

2003-09-24 Thread Michel Bertrand
Hi ! This is my mapping : Photo This is my table: Photo | id int(10) unsigned PRI auto_increment | title varchar(60)

Re: [castor-dev] Marshaller output

2003-09-24 Thread Arnaud Blandin
Hi Robert, Castor is using the Apache XML Serializer to output XML. You can configure it to output the XML you want (indent, etc...). However you can plug other serializers to use the one that best suit your needs. The API to configure the Serializer is in the Marshaller class. Hope that helps,

[castor-dev] Marshaller output

2003-09-24 Thread robertlaferla
We are considering using Castor for a project. However, I need the Marshaller to generate human readable output (indented, newlines, etc..) I think this is a feature request but perhaps someone can recommended a way of doing it. I am looking for functionality similar to JDOM's XMLOutputer cl

[castor-dev] HELP NEEDED!! - [castor-dev] Castor on OS/390-USS => "An invalid XML character (Unicode: 0x14)was found..."

2003-09-24 Thread Rajeev Koolath
Hi, I saw the discussion thread at the castor mailing archive. http://www.mail-archive.com/[EMAIL PROTECTED]/msg08918.html I am facing the same problem with Websphere 4.0 on OS/390 with castor. Stack Trace:- org.xml.sax.SAXException: Parsing Error : An invalid XML character

Re: [castor-dev] Is it strange or not ?

2003-09-24 Thread Alexey A. Efimov
Did you have key generators for your objects? If not, then you must manualy set ID field. -Original Message- From: Michel Bertrand [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 8:41 PM To: [EMAIL PROTECTED] Subject: [castor-dev] Is it strange or not ? Hi ! I'm having th

Re: [castor-dev] Is it strange or not ?

2003-09-24 Thread Michel Bertrand
Yes, I have and it's an auto_increment field and due to it I did not set the value for the id field ... any other idea ? -Mensagem original- De: Alexey A. Efimov [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 24 de setembro de 2003 13:48 Para: [EMAIL PROTECTED] Assunto: Re: [castor-d

Re: [castor-dev] Is it strange or not ?

2003-09-24 Thread Stein M. Eliassen
Michel Bertrand wrote: Hi ! I'm having the famous org.exolab.castor.jdo.DuplicateIdentityException problem when trying to store an object. The code fragment which causes this error is: The exception happens when the second part of the code is executed. I don't know what's happening, because I ha

[castor-dev] Is it strange or not ?

2003-09-24 Thread Michel Bertrand
Hi ! I'm having the famous org.exolab.castor.jdo.DuplicateIdentityException problem when trying to store an object. The code fragment which causes this error is: if ( (frm.getDescription1() != null && frm.getDescription1().trim().length() > 1 ) || (frm.getTitle1() != null && frm.getTitle1().

Re: [castor-dev] Download of Remote DTD

2003-09-24 Thread Scott Schenksj
Thanks everyone for your help. I took the sheepish way out (I think my team might have an easier time maintaining it). It might be worth adding a null resolver (or something like this) to castor. private static String stripDTD(String xml) { Perl5Util util = new Perl5Util(); ret

[castor-dev] Castor XML : How to programaticaly process types?

2003-09-24 Thread Voyer Henry
Title: Castor XML : How to programaticaly process types? Hi everyone I used to have mappings and handlers for my objects. Since I have dozens of classes, I need to stop using mappings and  try to use programmed configurations. Since the classes can change. Is there a way ,with examples, t