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,
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
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
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
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).
-
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
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
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
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
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
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
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
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]
Hi !
This is my mapping :
Photo
This is my table:
Photo
| id int(10) unsigned PRI auto_increment
| title varchar(60)
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,
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
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
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
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
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
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().
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
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
23 matches
Mail list logo