Re: [castor-dev] one to many mapping example

2002-01-22 Thread Bruce Snyder
This one time, at band camp, Vu, Christophe said: VC >I'd like to know if anybody has a simple xml mapping file with a one to many VC >relationship...Mine does not working and I really don't know why. VC > VC > VC > VC > VC >direct="false" lazy="false"> VC >

Re: [castor-dev] generating sth other than java code

2002-01-22 Thread Ozgur Balsoy
We might need something more powerful than XSLT, but thank you, maybe I can start with it. Thanks. Ozgur -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Homeijer Sent: Tuesday, January 22, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: [castor-d

[castor-dev] Réf. : Re: [castor-dev] DESCRIPTOR MARSHALEXCEPTION

2002-01-22 Thread eswar . subramanyam
Margaret, Thnaks for your reply ! That should be a normal case ! I understand. But this restiction was included well before i generated my source files ! Eswar. This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this m

Re: [castor-dev] DESCRIPTOR MARSHAL EXCEPTION

2002-01-22 Thread Martin, Margaret
Eswar, I think you will need to regenerate your classes. The source generation creates restrictions in the generated code (all the Descriptor files) to enforce your xsd restrictions. If you update the xsd, then those no longer are valid. Hope this helps... Margaret -Original Message- Fr

[castor-dev] one to many mapping example

2002-01-22 Thread Vu, Christophe
Hello, I'd like to know if anybody has a simple xml mapping file with a one to many relationship...Mine does not working and I really don't know why. My mapping is (one Prod has many ProdDetails: http://castor.exolab.org/mapping.dtd";>

Re: [castor-dev] urgent: double toString format error on update

2002-01-22 Thread Ned Wolpert
I don't know much about mySql, but have you tried using Numeric or other number type where you can specify the precission? >From what this email sounds like, its a problem with the table type. Can you give more information, like the schema affected, and how you're mapping it? --- Ender_Hikmet_KI

[castor-dev] support for cloning with source generator

2002-01-22 Thread Robert Ollila
Hi all, I see from a search of the archives that there was someone investigating implementation of cloning support for the source generator. Does anyone know if this ever materialized ( or if it will ever materialize )? thanks, Bob. == Robert Ollila Softwar

[castor-dev] Castor Performance

2002-01-22 Thread Vu, Christophe
First Thanks a lot Alexey for your fast answer ! I'd like to know if anybody has done some performance study about Castor, what are the recommendations... Thanks again for any help ! Christophe -Original Message- From: Alexey A. Efimov [mailto:[EMAIL PROTECTED]] Sent: mardi 22 janvier

Re: [castor-dev] TimeStamp...while updating

2002-01-22 Thread Alexey A. Efimov
You can use db.update only for object from another transaction. Example: ... // First transaction (get the object) db.begin o = db.load(Object.class, id); db.commit(); // Here we change object o.setXX(...); // Second transaction (update the object) db.begin(); db.update(o); db.commit(); This c

[castor-dev] DESCRIPTOR MARSHAL EXCEPTION

2002-01-22 Thread eswar . subramanyam
hi, we used the source code generator to create java objs from ouir xsd. The problem now is we have an NMTOKEN x which can take either of the values (1,2,3) . And, we created a xml instance of the xsd with a value '4' for the NMTOKEN 'x' . And at the point of unmarshalling this xml instance the

[castor-dev] TimeStamp...while updating

2002-01-22 Thread Vu, Christophe
I begin with Castor and I have some trouble with the Update (Select, Create and Remove are fine). While doing my update I have this error: JDO UPDATE java.lang.IllegalArgumentException: A master object that involves in a long transaction must be a TimeStampable! My code: <%@ page import="org.

[castor-dev] urgent: double toString format error on update

2002-01-22 Thread Ender Hikmet KILIÇOGLU
Hi This is my second mail about this error. Problem is appair when you try to update double field with 7 or more digit on a mysql table. Reason is SQL query created with exponention format like "2.802344E7" so it cause exception on the mm.mysql's executeupdate function. I couldnt find solution Tha

[castor-dev] Curious exceptions in Castor :) (serial "what the hell?")

2002-01-22 Thread Alexey A. Efimov
Title: Curious exceptions in Castor :) (serial "what the hell?") 1. If you get exception after update or create that: StringBufferIndexOutOfBound exception, it mean that you try save to foreign key field an empty string value ("", but not null, becose for null it work correct). 2. If you get

[castor-dev] how to disable keygenerators ?

2002-01-22 Thread lars.gersmann
hi, i have a common mapping file for both castor jdo and castor xml. when i import xml data to jdo (-> make data persistent) all predefined id fields will be overwritten due defined key generators. is there a way to disable the key-generator while importing the xml data ? i took a look in the s

Re: [castor-dev] Creating database schemas from xml

2002-01-22 Thread Markus Fritz
Hi, Chris Cook schrieb: > > Does anyone have experience with actually creating database schemas from an > xml file with Castor? For example if I had an oracle schema, I would like > to use the same xml file I created that schema off of to create it in > SQL2000. > I don't know of any tool to d

[castor-dev] How get list of complex identifiers?

2002-01-22 Thread Alexey A. Efimov
Title: How get list of complex identifiers? How I can get list of complex identifiers of object. The OQL conception means that I can select only one object (not set of fields that in generic SQL). I can use: select o from Object o; or select o.field from Object o; and I can't use follow:

Re: [castor-dev] generating sth other than java code

2002-01-22 Thread Michael Homeijer
As your output is HTML wouldn't it be easier to transform the schema to HTML using XSL translation? HTH, Michael -Original Message- From: Ozgur Balsoy [mailto:[EMAIL PROTECTED]] Sent: dinsdag 22 januari 2002 9:25 To: [EMAIL PROTECTED] Subject: Re: [castor-dev] generating sth other than j

Re: [castor-dev] Castor in a web application

2002-01-22 Thread Antony
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 22, 2002 3:52 AM Subject: Re: [castor-dev] Castor in a web application > > How did you end up doing this. I have to do the same thing > > > In attachment I included an example from Ned. Should

Re: [castor-dev] generating sth other than java code

2002-01-22 Thread Ozgur Balsoy
Thanks, Keith. I see what you mean. I definitely thought of using SOM, but was wondering how tightly coupled the Java source generation was to the SourceGen. Ozgur -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Keith Visco Sent: Tuesday, January 22, 2002