[castor-dev] trying to understand certain srcgenerator fundamentals..

2002-10-22 Thread Eitan Suez
hi, sample schema: running the sourcegenerator, the generated java class for us-address-type (UsAddressType) is designated abstract while a separate UsAddress.java file is generated that extends it. this does not make sense to me. to me the element is an ins

Re: [castor-dev] JDO creates incorrect SQL for select.

2002-10-22 Thread Yasuhiko Yoshikawa(Sakakibara)
Bruce, Yes, I noticed that it might be referencing the table alias but the sql does not specify (declare?) the alias customer_f4. So, this is the incomplete SQL statement if customer_f4 is meant to be an alias. If customer_f4 is an alias referencing the customer table then the lines > address

Re: [castor-dev] Bug in generating XML Schema using XMLInstance2Schema

2002-10-22 Thread Arati
Hi Sorry for not sending enough information in my first mail. I am attaching the exception message and the XML document I am using to create the schema. General Exception java.io.IOException: java.lang.NullPointerException at org.exolab.castor.xml.schema.util.XMLInstance2Schema.createSchema(Unk

Re: [castor-dev] mirror of complete db-table to xml?

2002-10-22 Thread David Blevins
Andreas, You could use OpenEJB which actually uses Castor JDO for CMP Persistence and employs Castor XML. Jboss also has Castor integration, though, I don't have any details on that. That would definitely be the approach I'd go if I had to do any complex manipulation/validation of the XML data b

[castor-dev] mirror of complete db-table to xml?

2002-10-22 Thread Andreas von Doemming
Hi, We are using EJBs with jboss and oracle here. Now we want to add a xml-Import/Export to the database. Now my questions: 1. I've seen now a lot of examples, but they always stor just one single bean to xml. What's when I want to export/import - or marhall/unmarshall a complete db-table (to a

Re: [castor-dev] Short transaction updates and properties that contain collections

2002-10-22 Thread Davis, Richard
Bruce, Thanks for the reply. We are already using db.setAutoStore( true ). I'm currently using 0.9.3.12. Would moving to 9.4 possibly help in this case? rich -Original Message- From: Bruce Snyder [mailto:ferret@;frii.com] Sent: Tuesday, October 22, 2002 6:20 PM To: [EMAIL PROTECTED] Subje

Re: [castor-dev] Short transaction updates and properties thatcontain collections

2002-10-22 Thread Bruce Snyder
This one time, at band camp, Davis, Richard said: DR>I'm encountering a problem with short transaction updates when I attempt DR>commit a changed object. DR> DR>The object has a property which is another Castor data object which itself DR>has a collection of Castor data objects. The relationship

[castor-dev] Short transaction updates and properties that contain collections

2002-10-22 Thread Davis, Richard
I'm encountering a problem with short transaction updates when I attempt commit a changed object. The object has a property which is another Castor data object which itself has a collection of Castor data objects. The relationship is 1 to 1 to many in this case. The problem is that changes to

Re: [castor-dev] many-to-many relationship

2002-10-22 Thread Bruce Snyder
This one time, at band camp, Emre Tuvay said: ET> Here is the mapping for Profile: ET> ET> ET> Profile ET> ET> ET> ET> ET> ET> ET> ET>

Re: [castor-dev] Cache access and logging

2002-10-22 Thread Bruce Snyder
This one time, at band camp, Werner Guttmann said: WG>just wondering whether there is a way to configure e.g. a logger that WG>would tell me whether a property has been retrieved from the WG>(performance) cache as opposed to the database. Or any other mechanism WG>that I might have overlooked ? W

Re: [castor-dev] XML binding performance

2002-10-22 Thread Dennis Sosnoski
Here's a summary of my timing results running Castor 0.9.3.9 with Sun Linux JVM 1.4.1 in csv format (convenient for spreadsheet import): Castor Mapped,Unmrs mn,7,85,94,Unmrs av,18,97,112,Mrshl mn,3,47,37,Mrshl av,7,51,44 Castor Mapped,Unmrs mn,10,151,128,Unmrs av,21,170,142,Mrshl mn,4,78,52,Mrs

Re: [castor-dev] JDO creates incorrect SQL for select.

2002-10-22 Thread Bruce Snyder
This one time, at band camp, Yasuhiko Yoshikawa(Sakakibara) said: YY>Hi, I am new to castor JDO and found it wonderful. YY>However, when I try it out, I encountered a problem that the JDO creates YY>incorrect SQL statement:(line breaks and spaces are inserted for YY>readability) YY>SELECT YY>

Re: [castor-dev] one to one relationships

2002-10-22 Thread Aadithya Deshpande
Title: RE: [castor-dev] one to one relationships Oh wait, I was wrong.  I thought it worked in principle ( but failed due to db issues but i see that I'm still having issues ) :   I've set up my mapping file as such                                          

Re: [castor-dev] one to one relationships

2002-10-22 Thread Patrick van Kann
Hello, There is a lot of refactoring work that could be done to improve the JDO side of Castor - it is a question of available resources to perform the work. There are few committers on the JDO side and they are kept very busy with this list. But I agree -- using "many-key" in a one-to-one ma

Re: [castor-dev] Bind-XML Doesn't Change Element Name When Marshalling

2002-10-22 Thread Close, Gregory F (Elemental Solutions)
Thanks, Keith. That was exactly it. > -Original Message- > From: Keith Visco [mailto:kvisco@;intalio.com] > Sent: Monday, October 21, 2002 3:14 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Bind-XML Doesn't Change Element Name When > Marshalling > > > > Greg, > > Make sure y

Re: [castor-dev] Patch #13 for eliminate possible exception withOracle's cursor

2002-10-22 Thread Mickaël Guessant
Sergej Maslyukov wrote: Hi when ResultSet.close() and Statement.close() invoked Oracle jdbc driver not close open cursor in DB. For immediate close cursor need ResultSet and Statement set to null. This says to GC remove object from garbage and cursor in DB is closed. Can you prove this ? AFAIK

Re: [castor-dev] Support for multi-column primary keys

2002-10-22 Thread Bruce Snyder
This one time, at band camp, Jan Ploski said: JP>I have my database schema arranged as follows: JP> JP>Table "model", PK = id JP>Table "traffic_node", PK = (modelID, id) JP> JP>traffic_node.modelID refers to model.id. JP>traffic_node.id is NOT alone unique in the table traffic_node. JP> JP>I would

Re: [castor-dev] Bug in generating XML Schema using XMLInstance2Schema

2002-10-22 Thread Daan.Hoogland
Yes if you send in your schema, or some other that shows the problem. > -Original Message- > From: Arati [mailto:arati_rahalkar@;persistent.co.in] > Sent: Tuesday, October 22, 2002 4:25 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Bug in generating XML Schema using > XMLInstance2Sche

Re: [castor-dev] one to one relationships

2002-10-22 Thread Aadithya Deshpande
Title: RE: [castor-dev] one to one relationships Thanks a lot.  That really cleared it up for me. That brings me to two questions: 1) Why not change the name of the "many-key" attribute to something like "relationship-key" or "rel-key" ?  It seems that a x - to - many mapping is dependent

[castor-dev] Bug in generating XML Schema using XMLInstance2Schema

2002-10-22 Thread Arati
Hi I am facing problems using XMLInstance2Schema for generating XML Schema from large XML documents (gives ArrayIndexOutofBoundsException) or from XMLs that have empty nodes (gives NullPointerException). Could anybody please look into this problem? Regards, Arati ---

Re: [castor-dev] many-to-many relationship

2002-10-22 Thread Emre Tuvay
Hi Bruce, I need to elaborate this. Here is the mapping for Profile: Profile

[castor-dev] Cache access and logging

2002-10-22 Thread Werner Guttmann
Hi, just wondering whether there is a way to configure e.g. a logger that would tell me whether a property has been retrieved from the (performance) cache as opposed to the database. Or any other mechanism that I might have overlooked ? Thanks Werner -

Re: [castor-dev] Patch #13 for eliminate possible exception with Oracle's cursor

2002-10-22 Thread Sergej Maslyukov
Hi when ResultSet.close() and Statement.close() invoked Oracle jdbc driver not close open cursor in DB. For immediate close cursor need ResultSet and Statement set to null. This says to GC remove object from garbage and cursor in DB is closed. ResultSet rs = null; Statement st = null; try{ .

Re: [castor-dev] Have problem with oracle clob bigger than 4k

2002-10-22 Thread Mickaël Guessant
Hamdi Mohs Yusof wrote: Are you using Oracle's thin driver or the OCI driver. When I worked with LOBs I had to make use of the OCI driver. It's as simple as changing the URL in the database descriptor from this: jdbc:oracle:thin:@ to this: jdbc:oracle:OCI8:@ As long as you're using clas

Re: [castor-dev] JDO creates incorrect SQL for select.

2002-10-22 Thread Yasuhiko Yoshikawa(Sakakibara)
Mickael, Thank you for your reply. Here is the excerpt from the mapping.xml. Please let me know if you need to check anything else. Since I am new to Castor, I am not sure what data to provide to ask for help.

Re: [castor-dev] JDO creates incorrect SQL for select.

2002-10-22 Thread Mickaël Guessant
Seems to be a mapping problem, could you send your mapping file ? Yasuhiko Yoshikawa(Sakakibara) wrote: Hi, I am new to castor JDO and found it wonderful. However, when I try it out, I encountered a problem that the JDO creates incorrect SQL statement:(line breaks and spaces are inserted for read

Re: [castor-dev] XML binding performance

2002-10-22 Thread Arnaud Blandin
Hi Dennis, I have no real clue of what could have happened to slow down that much the performance, maybe some reference are not cleared during the marshalling/unmarshalling process. We plan to do a profiling of Castor once we are feature complete. To optimize the performance, I advise you to use X

Re: [castor-dev] Issue with xml schema group and castor generated code

2002-10-22 Thread Arnaud Blandin
Hi Jack, Which version are you using? Have you tried the CVS version? Arnaud -Original Message- From: Jack Honeghan-Bates [mailto:jack.bates@;digitalsteps.com] Sent: Friday, October 18, 2002 6:56 PM To: [EMAIL PROTECTED] Subject: [castor-dev] Issue with xml schema group and castor gener

Re: [castor-dev] Problem in validation code generated for elements

2002-10-22 Thread Arnaud Blandin
Hi Vincent, Thanks for catching that, I've updated the CVS. Arnaud > -Original Message- > From: Figari, Vincent [mailto:vincent.figari@;sap.com] > Sent: Friday, October 18, 2002 5:17 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Problem in validation code generated for > elements >

Re: [castor-dev] Have problem with oracle clob bigger than 4k

2002-10-22 Thread Hamdi Mohs Yusof
Thanks everyone for the help. I have tried Bruce's idea but got an error: java.sql.SQLException: No suitable driver I changed from thin to OCI8 as suggested. The error seems to be when I tried to get the jdo. When I changed back to thin, it ran a ok, accept for the 4k clob limit that is. Dani

Re: [castor-dev] SourceGenerator on multiple namespaces

2002-10-22 Thread Arnaud Blandin
Hi Christian, Vincent, Daan, Erik and castor fans, Here is some update on the problem reported concerning namespace: Castor wasn't able to find the correct ClassDescriptor when marshalling and we also faced a namespace setting problem in the generated descriptors. The support has been modified sl