Re: [castor-dev] Exposing .size() and .absolute(x) on QueryResults

2002-01-25 Thread Bruce Snyder
Ned Wolpert wrote: > > I can patch it in to cvs. But we need a test case for it before it > is placed into the repository. Can you write one up Matthew? I can > try to write it up over the weekend, but I may not have enough time to > do it. > > --- Keith Visco <[EMAIL PROTECTED]> wrote: > > >

[castor-dev] Support for user-defined types in Castor XML

2002-01-25 Thread Kenneth Lim
Hi - Can anyone tell me if Castor XML (SourceGenerator) can support user-defined types? More specifically ... I want to generate source code that uses a user-defined type (MyNumberClass) for a particular member, rather than the XML built-in types. If this is possible, would you mind providing a

Re: [castor-dev] Exposing .size() and .absolute(x) on QueryResults

2002-01-25 Thread Ned Wolpert
Sounds interesting... you're basically adding cursor control to castor, yes? How large of a patch is it? How many files are being updated? How does this affect the caching? What is the complexity of the patch? --- Matthew Baird <[EMAIL PROTECTED]> wrote: > Hello, > > I've done the work to exp

[castor-dev] Exposing .size() and .absolute(x) on QueryResults

2002-01-25 Thread Matthew Baird
Hello, I've done the work to expose an efficient .size() and .absolute(x) call on the QueryResults and PersistenceQuery interfaces, going all the way down to where the resultsets are created in the SQLEngine. Anyone who is using Castor to display a "paged resultset" in a web app or otherwise

Re: [castor-dev] How to set props

2002-01-25 Thread Ned Wolpert
In the mapping.xml file. See http://castor.exolab.org/key-generator.html for specific explanation under the sequence section, but you'd use it this way: where a_seq is the sequence name. Note that with {0}_seq, the {0} is replaced with the table name. You also (in the cvs vers

[castor-dev] about the JDO QueryResults, Is this my problem or a JDO problem?

2002-01-25 Thread Ping Ding
Object model: MyOrder is a class that has a field of type OrderLine (as a collection). I saved two MyOrder objects into a database. order1 references 2 OrderLine objects. order2 references 3 OrderLine objects. If I select all MyOrder objects, the OrderLine objects of the order2 are

[castor-dev] inserting user defined nodes in the mapping file

2002-01-25 Thread Prathibha Ram
Is there a way to manipulate the generated mapping.xml so that I can group some instance variables(not collections) in my object into subnodes of another user defined node that is not part of the object itself?   For instance, if I have an object called Person and it has the following instan

[castor-dev] How to set props

2002-01-25 Thread TimothyReaves
Hello. The SequenceKeyGenerator sets the sequence object with the line: _seqName = params.getProperty("sequence", "{0}_seq"); Where do I set the property? Is it in the database.xml file? --- If you wish to unsubscribe from

Re: [castor-dev] postgresql and large objects

2002-01-25 Thread Ned Wolpert
You may want to try the latest jdbc driver for postgresql from jdbc.postgresql.org. The ones that have been distributed in postgresql in 7.1.3 and eariler releases have had problems with this. Keep in mind that the new driver uses columns of type bytea instead of type oid for large object suppor

Re: [castor-dev] using castor for data import from XML into DB

2002-01-25 Thread Ned Wolpert
--- Keith Visco <[EMAIL PROTECTED]> wrote: > However I was thinking, since Castor already comes with our XSLT > processor that we could hook it up by default...if we see a > processing instruction we could automatically > process the XML before unmarshalling. We would obviously make the option

Re: [castor-dev] using castor for data import from XML into DB

2002-01-25 Thread Ned Wolpert
I don't have a good answer for this, but if I had the choice, I'd want both. Reason is simple. Default the XML doc to a specific version, but allow individual elements to be of different version. In reality, I'd be happy with individual elements containing a version, so I could 'mix-and-match

Re: [castor-dev] using castor for data import from XML into DB

2002-01-25 Thread Keith Visco
Robert Ollila wrote: > > Ned, > > Just one more quick question. When using XSL to translate versions, does the > versioning information have to be contained in the root node, or can it be > contained within other elements? The reason I ask is that a single XML > document is composed of many X

Re: [castor-dev] marshalAsDocument ignored

2002-01-25 Thread Keith Visco
Hi Laslo, The problem comes from the fact that you are setting your own DocumentHandler. This isn't a bug in Castor, but rather how you have your Serializer configured. Since you are creating your own Serializer you'll need to configure it yourself to omit the XML declaration. Do the following

Re: [castor-dev] Root element of input xml ignored

2002-01-25 Thread Keith Visco
Hi Laslo, You are correct, the name of the root element is ignored during unmarshalling if you pass in a root class. I am actually surprised more people don't complain about this... There is a current work around: If you don't want the root element to be ignored, try this: ClassDescriptorRes

Re: [castor-dev] using castor for data import from XML into DB

2002-01-25 Thread Robert Ollila
Ned, Just one more quick question. When using XSL to translate versions, does the versioning information have to be contained in the root node, or can it be contained within other elements? The reason I ask is that a single XML document is composed of many XML elements, each of which may have ve

[castor-dev] Performance test

2002-01-25 Thread Rainer Mueller
Hello! Are there any performance tests for Castor-JDO available? I would like to know the difference concerning the performance between a application which runs with JDO and the same application which uses only JDBC. Of course the object relational framework will steal some performance, but ho

Re: [castor-dev] Modeling everything from the XML Schema...

2002-01-25 Thread Ned Wolpert
You can find XDoclet at xdoclet.sourceforge.net. This has been a thought experiment so far, I'm going to try and prove it this weekend with the ddl, but you can use it know to help generate the mapping.xml file. See the website, and look at the ejbdoclet link on the left-hand side. --- Robert Oll

Re: [castor-dev] using castor for data import from XML into DB

2002-01-25 Thread Robert Ollila
Ned, First, thanks for your interest and generous reply. Your use of XSL to translate version 1 to version 2 sounds like the way to go. Do you think there is any place in the Castor architecture where we can build in support for these type of issues? For example, wouldn't it be cool if you cou

Re: [castor-dev] Modeling everything from the XML Schema...

2002-01-25 Thread Robert Ollila
Ned, This sounds awsome! When I first started working with Castor I actually thought that this was already possible. Afterall, one of the presentations on the Castor site promotes Castor as the quickest path between XML, Java, and RDBS. Well right now this is only partially true. I have been

[castor-dev] How i can do inner SELECT in Castor OQL?

2002-01-25 Thread Alexey A. Efimov
Title: How i can do inner SELECT in Castor OQL? Hello, Does anybody known about SELECT o1 FROM Object1 o1 WHERE o1.idO2 IN LIST(SELECT o2.id FROM Object2 o2)?? How I can do? (if I can) :) Thanks

Re: [castor-dev] querying collections with oql

2002-01-25 Thread Alexey A. Efimov
article.id can't be 11 and 12 by one time: You queried follow: I = 1; (I == 1 and I == 2) this always false So, article.id - it's one value, how one value may be and 11 and 12 ? :) -Original Message- From: Christoph Sturm [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 8:03 P

[castor-dev] RE: Äcastor-devÅ W3C datatype languagenot currently supported by Castor Source Generator.

2002-01-25 Thread Peter . Burgess
Hi Keith, Thanks for that. I'll try the CVS fix as you suggest - but in anycase it's no real problem (I've now managed to compile the ebxml2.0 schemas successfully). - Peter -Original Message- From: Keith Visco [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 19:04 To: [EMAIL PROTECTED]

[castor-dev] marshalAsDocument ignored

2002-01-25 Thread BEDNARIK,LASLO (HP-Germany,ex1)
Hi again, before bringing up another issue let me first say that I enjoy using CASTOR. Every time I find an issue I keep telling me it would have been much harder to code our project with an own XML-JAVA binding framework - we would have surely ended up with more bugs and less features than CAST

Re: [castor-dev] postgresql and large objects

2002-01-25 Thread Jan Kanzleiter
hi, On Fri, Jan 25, 2002 at 01:38:03PM +1300, Keith Chew wrote: > Oh yeah, I think I encountered this before. It's a JDBC driver problem. If > you look that the JDBC implementation, the version that you have got has > removed quite a number of types in the setObject(). ah, then an other jdbc driv

Re: [castor-dev] Root element of input xml ignored

2002-01-25 Thread BEDNARIK,LASLO (HP-Germany,ex1)
Hi Arnaud, thanks for your reply. Regarding the descriptors: yes, they are all compiled when I run my test code. Regarding the Root.unmarshal method: it doesn't change the behaviour at all. I also don't see how it could as it is basically doing the same thing internally that I did in my code s