[castor-dev] API proposal for transaction synchronization in user code

2002-06-20 Thread Ross Bagley
Hello, I'd like to propose an addition to the Castor interface to assist in what I feel should be a relatively common need: developer transaction synchronization. Basically, if you want to implement MFC, you need to propagate changes from the Model (persisted objects) out to various Views (State

Re: [castor-dev] namespaced element ref's - bug?

2002-06-20 Thread Perryn Fowler
Title: namespaced element ref's - bug? Thanks Arnaud.   Should I raise it in Bugzilla?   Perryn Fowler -Original Message-From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]Sent: Friday, June 21, 2002 1:15 AMTo: [EMAIL PROTECTED]Subject: Re: [castor-dev] namespaced element ref

Re: [castor-dev] Problems with unmarshalling byte[] content

2002-06-20 Thread Pratibha Gupta
Keith, There is code to deal with base64 in UnmarshalHandler, but that is at the element level. There is no byte[] handling for the character content. Thanks, Pratibha Keith Visco wrote: Hi Pratibha, There is already code in the UnmarshalHandler to deal with base64 and byte[]'s. So if du

Re: [castor-dev] Problems with unmarshalling byte[] content

2002-06-20 Thread Keith Visco
Hi Pratibha, There is already code in the UnmarshalHandler to deal with base64 and byte[]'s. So if during unmarshalling it's not entering that block of code then we need to figure out why. I'll double check this later to see if I can duplicate the issue. Thanks, --Keith Pratibha Gupta wrote:

Re: [castor-dev] Type conversion error when unmarshalling XML

2002-06-20 Thread Keith Visco
Hi Howard, Try moving the reference="true" to the element, not the bind-xml element. --Keith howard fraser wrote: > > Hello > > I am marshalling a set of objects to XML using reference and identity > attributes to allow object instances to be shared. The resulting XML looks > correct to me

Re: [castor-dev] NS prefix contains a bug ???

2002-06-20 Thread Keith Visco
It seems weird that your namespace that is being output is http://castor.exolab.org, can you please show me the mapping file you are using? Thanks, --Keith > "Romilson C. Carvalho" wrote: > > I think ns prefix contains a bug. > > There are no way to force castor to remove ns prefix of final

Re: [castor-dev] Ns Prefix .. old version is good

2002-06-20 Thread Keith Visco
Hi Romilson, Sorry for the troubles you are experiencing. Would it be possible for you to send a complete example (as small as possible, please) that demonstrates the problem so that we can see first hand what is happening? Thanks, --Keith > "Romilson C. Carvalho" wrote: > > Hi, > > Castor

[castor-dev] CALL SQL

2002-06-20 Thread
Hi Group. I'm having a problem executing a SQL CALL from Castor. If anyone here has some experience with this please drop me a line. ERROR: java.lang.IllegalArgumentException: Only 0 fields in this query at org.exolab.castor.jdo.engine.OQLQueryImpl.bind(OQLQueryImpl.java:153)

Re: [castor-dev] XML Source generator: Inconsistent packaging + Patch

2002-06-20 Thread Alex Gitelman
Title: Message Hi Arnaud, I might be missing something, but in example I provided types.package is not generated at all. All packages are generated in enumtest. Also MyString is not enumeration itself anyway, but error message clearly shows it's expected to be there. "import types.MyString",

[castor-dev] CDATA

2002-06-20 Thread August Detlefsen
How can I force an XML element to use the CDATA type? I want to enclose some HTML formatted text inside an XML element like this: ![CDATA[laah ditty dahh]] (CDATA is not currently included) Is there a way I can set this in the mapping.xml? Here is my current mapping for this object:

[castor-dev] Ns Prefix .. old version is good

2002-06-20 Thread Romilson C. Carvalho
Hi,   Castor (0.9.3.19) continues putting ns prefixes in my document. I only has changed the version ( 0.9.3.19 by 0.9.3.9 ) and the ns prefixes was removed. The old version seem is better in this case.   Marshalling in 0.9.3.19 version:     FileWriter fw = new FileWriter( this.documentF

Re: [castor-dev] NS prefix .. how to resolve this ??

2002-06-20 Thread Romilson C. Carvalho
Did you checked it in 0.9.3.19 Castor version ? this is my code : FileWriter fw = new FileWriter( this.documentFile ); Marshaller marshaller = new Marshaller( fw ); marshaller.setMapping( this.mapping ); marshaller.setSchemaLocation( "http://www.metamodel.com/storage " +

Re: [castor-dev] Can I use transaction in castor to support 2pc?

2002-06-20 Thread Mickael Guessant
In order to obtain 2pc between MQ and a database, you will need a transaction monitor. A you don't want to use an application server, I would suggest using Tyrex (see exolab site ;-) ). I successfully made XA transactions between MQSeries and DB2. Some of the steps needed are : - define your dat

[castor-dev] XML instances created by marshalling not compliant with schema

2002-06-20 Thread Pratibha Gupta
animal.xsd --- http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified"> dog.xsd - http://www.w3.org/2001/XMLSchema"; elementFormDefault="unqualified"> DogTest.java --- import org.exolab.castor.xml.Marshaller; import java.io.

[castor-dev] NS prefix contains a bug ???

2002-06-20 Thread Romilson C. Carvalho
I think ns prefix contains a bug.   There are no way to force castor to remove ns prefix of final document xml.   setNamespaceMapping("","my-uri") not function setNamespaceMapping(null,"my-uri") not function declareNameSpace(..) is private   My schema (xsd) is correct.   Castor put  htt

Re: [castor-dev] Beginner question

2002-06-20 Thread
Chris, you are a bitch. T - Original Message - From: Chris Cook Sent: 6/10/2002 11:01:11 AM To: [EMAIL PROTECTED] Subject: [castor-dev] Beginner question > I'm trying to map a Java class into two database tables and was wondering if > that is supported using Castor. > > For example I h

[castor-dev] Troubles configuring SEQUENCE keyGen with Oracle9i

2002-06-20 Thread VIENNE Christophe
Title: Troubles configuring SEQUENCE keyGen with Oracle9i Hi, I have defined following simple mapping: http://castor.exolab.org/mapping.dtd">       identity="id" key-generator="OPTIO_AUTOGEN">