Re: [castor-dev] JDO Compliance

2003-02-25 Thread Hiran Chaudhuri
Hi, Neil. Thanks for the hint. I had read that page, and here are my thoughts: Castor JDO is not compliant to the spec, but it actually tries to cover the same functionality. Semantics in usage are quite similar: JDO PersistenceManagerFactor - Castor JDO JDO PersistenceManager - Castor Database JD

Re: [castor-dev] Question about 1:N mapping and sorting

2003-02-25 Thread Boris Klug
Hi! > Castor JDO supports the ORDER BY clause, but this may not be what > you need. My recommendation would be to get the objects into a > java.util.Collection implementation and sort them that way in your > business logic. The problem is, that the sort order is in the table which does the N:M

[castor-dev] Castor and performance

2003-02-25 Thread Keld Helbig Hansen
Let me know I if understand this right: Let's as an example assume that we have a db table with movies, with a many-to-many relation to actors, and we have 10.000 movies and 20.000 actors. If I now load one movie (with a query or load method call) that has 10 related actors, then I assume I'll get

Re: [castor-dev] How to create a mapping file for aggregated classes?

2003-02-25 Thread Celine Chan Kui Heong
hi tek1, thanks for the reference. but it is for JDO mapping. while i'm looking for the XML mapping from a XML to aggregated object(s) and vice versa. do you have any idea or reference for that? thanks. rgds, celine --- tek1 <[EMAIL PROTECTED]> wrote: > hi celine. > > this is from the examples

[castor-dev] Castor JDO config (database.xml) question/proposal

2003-02-25 Thread Dieter Wimberger
Hi all, The database.xml configuration file (i.e. For Castor JDO), requires to put the database connection configuration (with username, password etc.) together with the mappings. Now, the first is something that should be really configurable and cannot be simply packed into a resource package wi

Re: [castor-dev] Removing namespaces

2003-02-25 Thread Arnaud Blandin
Hi Venu, We are currently working on a feature to disable namespace processing in the marshalling framework. However it seems that you generated the classes from an XML Schema and I am not sure you really want the targetNamespace of that XML Schema to be "http://castor.exolab.org";. Try to change

Re: [castor-dev] Union base type

2003-02-25 Thread Arnaud Blandin
Hi, Can you please send the XML Schema so that we can reproduce the NPE? Thanks, Arnaud > -Original Message- > From: Scott Beseda [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 8:58 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Union base type > > I use Castor's Sche

[castor-dev] Castor JDO 0.9.4.3 and PostgreSQL 7.3 Quoting Issue

2003-02-25 Thread Dieter Wimberger
Hi all, I have been upgrading to PostgreSQL 7.3, and I realized that there exists an issue with the quoting and case sensitivity. I have been running into a problem using Castor with following error message: ERROR: Relation "xy" does not exist This might come from a table name in the mapping f

Re: [castor-dev] Parsing exception of a xsd:Time

2003-02-25 Thread Arnaud Blandin
Hi John, Your fix is ok, I committed it in CVS. Thanks for providing it. Arnaud > -Original Message- > From: John Weir [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 23, 2003 11:10 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Parsing exception of a xsd:Time > > Damien / Kei

Re: [castor-dev] Question about 1:N mapping and sorting

2003-02-25 Thread Bruce Snyder
This one time, at band camp, Boris Klug said: BK>I have a question about 1:N mapping and sorting: Assume you have two tables, BK>named table A and B. You want to express a N:M relation between A and B and BK>for this you use a thrid table called C with the ids of table A and B. Table BK>C looks

Re: [castor-dev] Article about Castor-JDO

2003-02-25 Thread Bruce Snyder
This one time, at band camp, Hiran Chaudhuri said: HC>Hi, David. HC> HC>My motivation is exactly like yours. We want to put our project onto JDO to HC>get independent of the database. We currently use Adabas D (SQL) and want to HC>move to Tamino (XML). Currently I see the chance to decouple the ap

[castor-dev] How to enable schema validation?

2003-02-25 Thread Rodriguez, Christine
Does anyone know the correct way to enable schema validation using our own schema definition? I have tried changing the castor.properties file and added xsi: property in my XML file instance.   Thanks...

[castor-dev] Union base type

2003-02-25 Thread Scott Beseda
I use Castor's Schema API to read customer's XML Schemas. A current XML Schema is throwing a null pointer exception when a simpleType contains a Union. The problem is caused because the SimpleTypeFactory expects all simpleTypes to have a base type. However, Unions do not have a single base type

[castor-dev] Removing namespaces

2003-02-25 Thread Venu Dharmapuri
Hi, I am new to castor development group. I am using castor 0.9.4.1 version. I tried following to remove namespace setNamespaceMapping("","http://castor.exolab.org";); removing targetNamespace from mapping file also removing nsURI reference from *Descriptor.java files I still could not remove names

Re: [castor-dev] JDO Compliance

2003-02-25 Thread Neil Aggarwal
Hiran: In case you did not realize it, I just wanted to let you know that Castor JDO does not implement the JDO specification. You can see more info on this at: http://castor.exolab.org/jdo-faq.html Thanks, Neil -- Neil Aggarwal JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMCo

Re: [castor-dev] Can't create JDO instance using Tomcat & JNDI

2003-02-25 Thread Patrick van Kann
This might also help. I created an ObjectFactory that puts a JDO DataObject in JNDI at startup as part of a Castor taglib project I have just completed. As part of it I also configured the DataObject to use a Tyrex TransactionManager - this replicates a lot of the functions you would get in a f