Re: [castor-dev] Does castor support proxy objects?

2001-11-29 Thread Bert van Brakel
Well thanks. I'm just a wee simple developer, so implementing this idea seems quite daunting at this stage. I'm just learning the ins and outs of using castor, let alone how it all works under the hood. However, when I get the time I'll start looking into it, as it would seem very useful. For no

Re: [castor-dev] JDO class design constrained by RDBMS relationalparadigm

2001-11-29 Thread Bruce Snyder
This one time, at band camp, Brad Clow said: BC >u don't have to have both sides of a relationship represented in your java BC >objects. for example we have a many-to-many defined in the database. BC >however only one of the two java classes involved contains a collection of BC >the other. BC >

Re: [castor-dev] Transaction Problem

2001-11-29 Thread Bruce Snyder
This one time, at band camp, yangj said: y > y > Inside a transaction ,if error ocurred before commit() ,execute rollback() y >will be right. y > But if error occured in excute commit(), execut rollback() will product y >error. y > The error reason seems when excute commit error happened, ris

Re: [castor-dev] Does castor support proxy objects?

2001-11-29 Thread Bruce Snyder
This one time, at band camp, Bert van Brakel said: BvB >Will future versions of castor support proxy objects, if they are not BvB >currently supported? I guess I could make a seperate object sharing the same BvB >table as the proxied object, and then have the proxy object call castor to BvB >get

Re: [castor-dev] Namespace of Attribute in SourceGenerator

2001-11-29 Thread Keith Visco
We've been over that a thousand times. UnmarshalHandler already contains code to handle Namespaces. The code it contains is far easier to use than the many possible namespace / prefix options that can occur in a ContentHandler. Also if you look back over the messages from this mailing list you

Re: [castor-dev] Namespace of Attribute in SourceGenerator

2001-11-29 Thread GyuDae
Thanks Arnaud. Why don't you implement org.xml.sax.ContentHandler instead of org.xml.sax.DocumentHandler in org.exolab.castor.xml.UnmarshalHandler. As you know, It supports for Namespaces. Cheers. GyuDae. - Original Message - From: "Arnaud Blandin" <[EMAIL PROTECTED]> To: <[EMAIL P

[castor-dev] A bug in IncludeUnmarshaller.java

2001-11-29 Thread Qiao, Wenjie
Hi, Forgive me if there was duplicate bug report before. A defect was introduced in IncludeUnmarshaller.java since cvs version 1.14. It will make SourceGenerator broken if there are two includes which points to the same xsd but with different URIs. For example, if in two different xsd files (at

[castor-dev] SourceGenerator enhancement: To support W3C extended datatype "language"

2001-11-29 Thread Farrukh Najmi
Problem Fixed --- Prior to the proposed change the following attribute declaration with type="langauge": would cause a warning to be generated and the resulting code to not be compilable. Attached is a proposed enhancement that does two things: 1. Treats the type="language" in a

Re: [castor-dev] Can I map directly from xml to a relational database without instantiatingJava Objects?

2001-11-29 Thread Keith Visco
Hi Dave, No this isn't possibe with Castor. You'll probably want to find another tool for that. We used to have some minimal support for it, but the person working on it changed jobs and never found the time to get back into working on it. --Keith [EMAIL PROTECTED] wrote: > > If I can, ple

[castor-dev] Does castor support proxy objects?

2001-11-29 Thread Bert van Brakel
I was wondering if castor supports proxy objects?. I can't seem to find any mention of this topic anywhere in the docs, nor in the mailing lists (after googling it). I mainly want to use it for displaying search results, as I don't want to castor to have to load the full objects. Will future ve

[castor-dev] Can I map directly from xml to a relational database without instantiatingJava Objects?

2001-11-29 Thread dave . a . sing
If I can, please tell me how and hpoefully point me to an example somewhere. Thanks --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] JDO class design constrained by RDBMS relational paradigm

2001-11-29 Thread Brad Clow
u don't have to have both sides of a relationship represented in your java objects. for example we have a many-to-many defined in the database. however only one of the two java classes involved contains a collection of the other. we also have one-to-many relationships where we have done the oppo

[castor-dev] Questions???

2001-11-29 Thread Vikram Mahuvakar
I am trying to use castor.0.9.3 source code generator to generate code for XML Schema. I have done this. Now I am trying to use java class mapping and generate xml file from the java code generated by the source code generator. I am having problem figuring out how to set the schemaLocation in the

Re: [castor-dev] PATCH for PostreSQL documentation bug

2001-11-29 Thread Todd V. Jonker
> Ok. I only updated one of the two. I missed another > > On the other hand, the format we prefer is > cvs diff -u > against the most recent cvs version, not release version. Thanks Thomas. But please fix src/doc/cvs.xml which specifically says to submit patches in diff -c format. BTW, the dif

Re: [castor-dev] bug in CVS version

2001-11-29 Thread Brett Porter
Title: bug in CVS version Yep, it does - I use arraylist, so I guess it is only those that have issues.   Perhaps I will change to collection - I don't see much benefit using the other mapping actually, since I only ever iterate and handle the order myself.   - Brett -Original Messag

[castor-dev] JDO class design constrained by RDBMS relational paradigm ??

2001-11-29 Thread Robert Ollila
Since there was no response earlier, I am reposting this message, so here's your chance to be a hero and help me out. ;) Any help would be greatly appreciated. Bob. -Original Message- From: Robert Ollila [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 10:41 AM To: [EMAIL PR

Re: [castor-dev] PATCH for PostreSQL documentation bug

2001-11-29 Thread Thomas Yip
Ok. I only updated one of the two. I missed another On the other hand, the format we prefer is cvs diff -u against the most recent cvs version, not release version. Thomas -Original Message- >From: Todd V. Jonker [mailto:[EMAIL PROTECTED]] >Sent: Thursday, November 29, 2001 1:03

Re: [castor-dev] ignore xml-elements possible?

2001-11-29 Thread Keith Visco
Hi Peter, Unfortunately you can't use the tip...since you need the elements inside the name element. You really doen't want to skip the name tag, you want to "unwrap" it and essentially pretend it's children occur where the name element occurs. We call this container elements. We have support fo

[castor-dev] PATCH for PostreSQL documentation bug

2001-11-29 Thread Todd V. Jonker
Hello everyone, I reported this documentation bug 3 months ago, but see that it hasn't been fixed in CVS. So here's a patch. It's my first patch submission, so please be forgiving. I used diff -c as indicated in the docs. The file database-conf.xml currently says (in two places):

Re: [castor-dev] xsd:string becomes java:java.lang.String when marshalling element with "enumeration" contents

2001-11-29 Thread Arnaud Blandin
-> -Original Message- -> From: BEDNARIK,LASLO (HP-Germany,ex1) [mailto:[EMAIL PROTECTED]] -> Sent: Thursday, November 29, 2001 12:06 PM -> To: [EMAIL PROTECTED] -> Subject: Re: [castor-dev] xsd:string becomes java:java.lang.String when -> marshalling element with "enumeration" contents -

[castor-dev] DOCTYPE not inserted

2001-11-29 Thread BEDNARIK,LASLO (HP-Germany,ex1)
Hi again (today is my CASTOR day), the Marshaller class has a method setMarshallAsDocument that should instert

Re: [castor-dev] xsd:string becomes java:java.lang.String when marshalling element with "enumeration" contents

2001-11-29 Thread BEDNARIK,LASLO (HP-Germany,ex1)
Hi Arnaud, sounds good. I'm just wondering if you are refering to the same part of the problem I feel is wrong: I think the main error happens during marshalling -CASTOR should not instert the xsi stuff at all. I don't know if unmarshalling introduces some more problems when it sees the xsi attr

Re: [castor-dev] Duplicate type classes for attribute definitions

2001-11-29 Thread Liu, Fengxian
I downloaded it from http://castor.exolab.org/download.html. FL -Original Message- From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Duplicate type classes for attribute definitions Which version of

Re: [castor-dev] SourceGen -'schema' has not been declared in the XML Schema names

2001-11-29 Thread Arnaud Blandin
Hi meerab, The version that is on the web site is an old version of the source generator document, you can find a more recent (July) one in the CVS. To reply to your questions: 1- No castor doesn't support anymore the 10/2000 XML Schema, it only supports the recommendation document 2- You can

Re: [castor-dev] xsd:string becomes java:java.lang.String when marshalling element with "enumeration" contents

2001-11-29 Thread Arnaud Blandin
Hi Laslo, some code have been introduced to change the behavior of 'xsi:type', Sebastien is working on a fix and clean solution so it might fix this problem. The code may appear in one or 2 weeks in the CVS, Sorry for the inconvenience, Arnaud -> -Original Message- -> From: BEDNARIK,LA

Re: [castor-dev] ignore xml-elements possible?

2001-11-29 Thread Arnaud Blandin
Hi Peter, we are working on adding a feature to automatically skip elements in the mapping file but for the moment you can use an XSL stylesheet to remove your tag or use the undocumented tip of the year : http://www.mail-archive.com/castor-dev@exolab.org/msg00339.html Hope this helps, Arnaud

Re: [castor-dev] Duplicate type classes for attribute definitions

2001-11-29 Thread Arnaud Blandin
Which version of Castor are you using? is it the CVS version? Arnaud -> -Original Message- -> From: Liu, Fengxian [mailto:[EMAIL PROTECTED]] -> Sent: Thursday, November 29, 2001 7:23 AM -> To: [EMAIL PROTECTED] -> Subject: Re: [castor-dev] Duplicate type classes for attribute -> definit

Re: [castor-dev] Duplicate type classes for attribute definitions

2001-11-29 Thread Arnaud Blandin
Hi Liu, This is indeed the same issue. Arnaud -> -Original Message- -> From: Liu, Fengxian [mailto:[EMAIL PROTECTED]] -> Sent: Thursday, November 29, 2001 9:53 AM -> To: [EMAIL PROTECTED] -> Subject: Re: [castor-dev] Duplicate type classes for attribute -> definitions -> -> -> Hi Keit

Re: [castor-dev] xsd:string becomes java:java.lang.String when marshalling element with "enumeration" contents

2001-11-29 Thread BEDNARIK,LASLO (HP-Germany,ex1)
Elements of this type seem to have raise issues in general: I tried another approach to overcome the "java:java.lang.String" issue. I explicitly declared the enumaration type and used it in both the element and the attribute defintion. Depending on which "org.exolab.castor.builder.javaclassmappi

Re: [castor-dev] unmarshal-marshal not match

2001-11-29 Thread Arnaud Blandin
Hi, It seems that you are not using the SourceGenerator but rather the introspection or the mapping so you might want to take a look at the castor.properties file: # Defines the NodeType for use with Java primitive types (int, long, # boolean, etc). This value is only used by the Introspector.

Re: [castor-dev] Namespace of Attribute in SourceGenerator

2001-11-29 Thread Arnaud Blandin
Hi GyuDae, you're right, for the moment Castor doesn't identify attributes that are prefixed. We are working on a solution that requires some changes in the way we process the xml data, we'll keep you posted. Sorry for the inconvenience, Arnaud -> -Original Message- -> From: GyuDae [ma

[castor-dev] xsd:string becomes java:java.lang.String when marshalling element with "enumeration" contents

2001-11-29 Thread BEDNARIK,LASLO (HP-Germany,ex1)
Hi, I face the problem that when I unmarshall an element whose type is "xsd:string" with a restriction to enumerated values Castor inserts some "xsi" attributes for this element. On the other hand everything seems to be fine for attributes of the same type. This occurs using classes generated

[castor-dev] SourceGen -'schema' has not been declared in the XML Schema names

2001-11-29 Thread meera b
Hi Folks, Castor newbee.. so bear with me.. I am attempting to generate Java source using example schema given in user guide (Castor version 0.9.3, file SourceCodeUser.pdf Page 10) The example given in user guide uses 2000/10 version of schema and does not have any "local prefix" for elements