Re: [castor-user] XML Getter discovery

2006-04-19 Thread Keith Visco
Hi Chris, Can you open up a JIRA report on this issue? Please see our issue reporting page here: http://castor.codehaus.org/cvs.html#Issue-Reporting-and-Tracking---JIRA Thanks, --Keith ELVART, CHRISTOPHER (SBCSI) wrote: I have a class with a boolean field and if I let the mapper discover

Re: [castor-user] FieldHandler with parameters?

2006-04-19 Thread Keith Visco
Steven, It's probably not the best solution, but you can use the getFieldDescriptor() method of AbstractFieldHandler (GeneralizedFieldHandler) to find out about the which field is being processed and you can do the proper padding as necessary. --Keith [EMAIL PROTECTED] wrote: Hi folks,

Re: [castor-user] XML: ClassCastException while unmarshaling an extension field

2006-04-19 Thread Keith Visco
Hi Gilad, Does the same problem occur when you generate the source using the type-centric approach? http://castor.codehaus.org/sourcegen.html#The-'type'-method --Keith Gilad Haimov wrote: Hi all, We use Castor to bind XML configuration data to our Java app. Our XML data contains an

SV: [castor-user] Serializing of double results in scientific expressionin XML-output

2006-04-19 Thread Daniel Nilsson
Hi again! Thanks for the tip. I looked and found some discussions about serailizing boolean as 0/1 pair which is more or less the same as my problem. I tried to create my own FieldHandlerFactory (note 1 below) and add it to the ClassDescriptorResolver (see note 2 below), but I can't get it to

Re: [castor-user] xml schema - Java object - db

2006-04-19 Thread Ralf Joachim
Hi Bill, this should be possible but as far as I know there is no example available yet. I'll try to take a look at our examples to see if they can be improved in that way during the next days. I'll come back to you with my findings. Regards Ralf Bill Leng schrieb: Hi, I used XML source

Re: [castor-user] FieldHandler with parameters?

2006-04-19 Thread Ralf Joachim
Hi Steven, adding parameters that should be passed to a FieldHandler to field mapping should be easy but I don't know if there are any difficulties to pass them to the FieldHandler at construction. As I never worked at FieldHandlers myself I don't know if an own instance is created for every

[castor-user] [XML] Problem with mapping file

2006-04-19 Thread Zeiler Christian, Bedag
Hello I'm using castor 0.9.9.1 with a mapping file (AB-binding.xml). The mapping file has an include element that points to another mapping file with the mapping definition of the common classes in my project. The problem is that Castor can't find the mapping file so it uses the default mapping

Re: [castor-user] FW: Clarification

2006-04-19 Thread Ralf Joachim
Hi Siva, as far as I remember discussions on the mailing list, CDATA sections should be possible. Please search the list yourself on how to do it. I think the following howto will point you in the right direction: http://castor.codehaus.org/how-to-unmarshal-raw-xml.html As Castor marshaller

RE: [castor-user] FW: Clarification

2006-04-19 Thread Sivalenka, Siva X
Thanks for your valuable response. -Original Message- From: Ralf Joachim [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 6:25 AM To: user@castor.codehaus.org Subject: Re: [castor-user] FW: Clarification Hi Siva, as far as I remember discussions on the mailing list, CDATA

RE: [castor-user] FieldHandler with parameters?

2006-04-19 Thread ELVART, CHRISTOPHER \(SBCSI\)
Keith said... It's probably not the best solution, but you can use the getFieldDescriptor() method of AbstractFieldHandler (GeneralizedFieldHandler) to find out about the which field is being processed and you can do the proper padding as necessary. This sounds OK to me. You could just

Re: [castor-user] Sybase sysdatabases

2006-04-19 Thread Ralf Joachim
Hi Alex, sysdatabases seam to be treated different then other tables in sybase. Searching the web I found references where 'master..sysdatabases' has been used. As I never worked with sybase and have no access to one I can not tell you what goes wrong here. If you'd open a new issue in jira and

Re: [castor-user] FieldHandler with parameters?

2006-04-19 Thread Stephen Bash
Steven/Chris- To answer the last question, yes, if you use a FieldHandler to wrap data in CDATA blocks, the serializer will escape the leading character(s). The way to get around this has been discussed recently on the list, but basically consists of instantiating your own XMLSerializer and

Re: [castor-user] build-in function on field

2006-04-19 Thread Ralf Joachim
Hi Alex, Castor do not support build in functions in mapping nor for return columns. They can only be used in where and order clauses. The only possibilities I can see are: - use passthrough sql queries - define a view (stored query) if sybase supports something like that instead of mapping

RE: [castor-user] FieldHandler with parameters?

2006-04-19 Thread ELVART, CHRISTOPHER \(SBCSI\)
To answer the last question, yes, if you use a FieldHandler to wrap data in CDATA blocks, the serializer will escape the leading character(s). The way to get around this has been discussed recently on the list, but basically consists of instantiating your own XMLSerializer and configuring

Re: [castor-user] Sybase sysdatabases

2006-04-19 Thread Alex Lee
Hi Ralf, Thanks for the response. I found the problem was that I forgot to put the database name in the JDBC URL. Even the database name is in JDOConfFactory.createDatabase and jdoManager.createInstance calls. Alex Ralf Joachim wrote: Hi Alex, sysdatabases seam to be treated different

RE: [castor-user] XML Getter discovery

2006-04-19 Thread ELVART, CHRISTOPHER \(SBCSI\)
I have created a JIRA issue for this... http://jira.codehaus.org/browse/CASTOR-1404 Thanks, Chris Elvart ATT - If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED]

[castor-user] [JDO] Re-open 1355?

2006-04-19 Thread Jon Wilmoth
I'm working with the 1355 patched, trunk codebase (as of 4/16) and althought the 1355 patch no longer requires all independent, lazy-loaded objects to be loaded in a relationship tree, read-only queries are now resulting in updates to the objects at the time db.commit() is called. This is