Re: [castor-dev] Castor XML with EJB and references

2002-01-11 Thread Rickard
Keith Chew SL wrote: > Hi Rikard > > Are you using Castor XML directly on the EJB or on the ValueObject/View that > the EJB generates? I'm not using ValueObjects at all (have a much more interesting approach to that problem), but am instead using direct refs. The problem is mainly how to res

[castor-dev] IDREFS support

2002-01-11 Thread Subramanian Subramanian
Hi, I was able to use the identity and refernce to marshall/unmarshall ID and IDREF. Now I need to the same thing for IDREFS. Does Castor-XML support IDREFS? How do I specify IDREFS? Thanks. Subrmanian --- If you wish to unsubscribe from

Re: [castor-dev] [JDO] Controlling instance creation in ClassMolder

2002-01-11 Thread Bruce Snyder
"Cabrera, Alan" wrote: > > I want to be able to supply my own instances, from a pool that I manage, > instead of creating them on-the-fly in ClassMolder's newInstance() method. > Is there a way to do this? > > Regards, Alan, There is no API supplied funcitonality for this type of behavior but

Re: [castor-dev] VALIDATION EXCEPTION DETAILS

2002-01-11 Thread Joyce Wong
Hi Eswar, I am currently in the process of making changes to ValidationException to include information such as the field name, the field value and the restriction on the value. Please see the e-mail thread posted to castor-dev entitled "XML Schema Validation: returning the field name in the exc

[castor-dev] Marshal\Unmarshal Problem

2002-01-11 Thread Ide Roth
I'm trying to convert from Java object to XML and vice versa and I having two problems. 1)When I marshal the Java object to XML, the mimeId and mimeDescription get set with the correct value but the mimeType is never set. 2)And when I tried to unmarshal, I get an error message with the mim

[castor-dev] Trouble with Postgresql 7.1.3

2002-01-11 Thread Olivier Dufailly
Hello i am new on this mailing list. I try to use CASTOR 0.9.3 with Postresql 7.1.3 on a Linux 2.2 powered computer and i get always the same exception. My test is derivated from the standard example. I just try to load a "computer" object. [test] Begin transaction [test] org.exolab.castor.jdo.P

Re: [castor-dev] Castor XML with EJB and references

2002-01-11 Thread Keith Chew SL
Hi Rikard Are you using Castor XML directly on the EJB or on the ValueObject/View that the EJB generates? I am using Xdoclet with CMP2.0 which generates the Views/ValueObjects. Now, I would now like to add XML input and output capabilities. eg: Input - Single == - receive order.xml -

[castor-dev] [JDO] Controlling instance creation in ClassMolder

2002-01-11 Thread Cabrera, Alan
I want to be able to supply my own instances, from a pool that I manage, instead of creating them on-the-fly in ClassMolder's newInstance() method. Is there a way to do this? Regards, Alan --- If you wish to unsubscribe from this mailing,

Re: [castor-dev] Castor for DAO's in an EJB app

2002-01-11 Thread Keith Chew SL
Hi Bruce If you stick to PM, then you can make it portable across containers. It's one step better than using a container's CMP2.0. In that situation, you are more locked in to the vendor. Not only do you need to write new descriptors, the results may differ if you decide to port. Just going thr

Re: [castor-dev] Inheritance - Map two classes to One table

2002-01-11 Thread Keith Chew SL
Hi Don Ah, now I understand your requirements. No, I believe Castor does not support this (yet). Keith > -Original Message- > From: Don DeLuca [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 12 January 2002 8:06 a.m. > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Inheritance - Map tw

Re: [castor-dev] stored proc mappings

2002-01-11 Thread Bruce Snyder
chris williams wrote: > > Is it possible to use castor to map our Java classes > to stored procedures? If castor does not support > this, what would be a rough estimate of the level of > effort to change castor to use stored procs for all > database interaction? We already have a castor > imple

Re: [castor-dev] Two vs One request

2002-01-11 Thread Bruce Snyder
"Rano, Didier" wrote: > > Hello, > > My castor configuration generates this request : > > SELECT MTI_REF.MTI_REF_C, MTI_REF.MTI_TYP_C, >VALRSR_CAR_MTI_REF.CAR_ID > FROM MTI_REF, VALRSR_CAR_MTI_REF > WHERE MTI_REF.MTI_REF_C = VALRSR_CAR_MTI_REF.MTI_REF_C(+) >AND MTI_REF.MTI_REF_C

Re: [castor-dev] Inheritance and caching issue

2002-01-11 Thread Bruce Snyder
Ryan Marsh wrote: > > Has this problem been fixed? > > See: > http://www.mail-archive.com/castor-dev%40exolab.org/msg03410.html > Ryan, Are you using the extends keyword in your mapping descriptor? Bruce --- If you wish to unsubscri

Re: [castor-dev] Inheritance - Map two classes to One table

2002-01-11 Thread Bruce Snyder
All, This message from November claims to add a certain level of support for the topic being discussed. I have not tested this code at all. I'm only suggesting that maybe it would help your situation: http://www.mail-archive.com/castor-dev@exolab.org/msg02599.html BTW, nice suggestion there K

Re: [castor-dev] Castor for DAO's in an EJB app

2002-01-11 Thread Bruce Snyder
Keith Chew wrote: > > Yes, and it comes with source. If you need help in setting anything up, give > me a buzz. Else, join the newsgroup for further discussion. > > Even if you are not going to use PM, just read the PDF documentation. By the > end of it, you'll be familiar with CMP2.0 and addito

Re: [castor-dev] Castor XML with EJB and references

2002-01-11 Thread Keith Visco
Hi Rickard, When using IDResolver you need to have a mapping as such: That should do the trick... I don't think CDR (ClassDescriptorResolver) will help you at all, it's used for loading ClassDescriptors, not for resolving references to exising classes. --Keith Rick

Re: [castor-dev] Marshal/Unmashal of an object

2002-01-11 Thread Keith Visco
Ide Roth wrote: > > I have a Java class and I'm trying to convert to XML (marshal) and back to Java >object (unmarshal). The problem I having is the Java object have a getter which >return one object and a corresponding setter which take a different object. I'm >allow to make any change t

Re: [castor-dev] Plea for info on Castor JDO 0.9.4! ;-)

2002-01-11 Thread Thomas Yip
I don't think we have timeframe for 0.9.4 yet. But, unless 0.9.4 release very late, I would guess there would have no major feature from now to 0.9.4 on the JDO side. Sorry, we're lacking of resource. Thomas -Original Message- >From: Werner Guttmann [mailto:[EMAIL PROTECTED]] >Sent:

Re: [castor-dev] Inheritance - Map two classes to One table

2002-01-11 Thread Don DeLuca
I think I understand what you are doing. Since GenericValueObject its not stated in the mapping file, both subclasses must repeat the inherited fields and don't take advantage of the "extends" feature of Castor JDO. In my case, I have a concrete super-class and subclasses that extend it. The sup

[castor-dev] Plea for info on Castor JDO 0.9.4! ;-)

2002-01-11 Thread Werner Guttmann
Hi, I'm really, really keen (and I am sure others are too) to have a list of key features that will appear in the next release of Castor JDO, and a finger-in-the-air estimate of when the next release will be available. Can anyone provide this information? Even a rough idea would be much appreciat

[castor-dev] Disable DTD Validation in UnMarshall

2002-01-11 Thread Mark Lussier
All We are using castor to unmarshall web.xml for some modeling we are doing. However, nothing we can do will prevent xerces from going out and attempting to download the DTD for web.xml. Setting validation false in Unmarshall does nothing. M

[castor-dev] VALIDATION EXCEPTION DETAILS

2002-01-11 Thread eswar . subramanyam
Hi, I have typical validation problem. where i would like to know the xml element (Java bean) that was invalid. for example if i have an element X which starts the validation process, but the elemnt that violates the validation is Y well indepth from X (nth child of X). I find that castor raises

[castor-dev] stored proc mappings

2002-01-11 Thread chris williams
The company we work with is moving toward a new policy away from dynamic sql and toward only allowing stored procedure selects/inserts/updates/deletes. They are doing this for multiple reasons but for the most part, they want to ensure that they are able to have direct access to examine the proc

[castor-dev] Two vs One request

2002-01-11 Thread Rano, Didier
Hello, My castor configuration generates this request : SELECT MTI_REF.MTI_REF_C, MTI_REF.MTI_TYP_C, VALRSR_CAR_MTI_REF.CAR_ID FROM MTI_REF, VALRSR_CAR_MTI_REF WHERE MTI_REF.MTI_REF_C = VALRSR_CAR_MTI_REF.MTI_REF_C(+) AND MTI_REF.MTI_REF_C = ? And I want request first MTI_REF

[castor-dev] Castor XML with EJB and references

2002-01-11 Thread Rickard
Hi! I'm using Castor XML with EJB's. My EJB's reference other EJB's, both as direct references and as collections. I would prefer if these references and collections were handled by allowing me to dereference them using custom code. E.g. use IDREF's which would allow me to look up the EJB's w

[castor-dev] Marshal/Unmashal of an object

2002-01-11 Thread Ide Roth
I have a Java class and I'm trying to convert to XML (marshal) and back to Java object (unmarshal). The problem I having is the Java object have a getter which return one object and a corresponding setter which take a different object. I'm allow to make any change to these functions. Exampl

Re: [castor-dev] Castor performance

2002-01-11 Thread Arnaud Blandin
Hi Antoine and Nick, To do that you just have to download the Xerces2 distribution from the Apache web site (xml.apache.org) or use their CVS server. Once you have the Xerces2 jar, you just have to put it in the classpath. In castor, the properties file lets you choose your SAX Parser implementa

Re: [castor-dev] How to find out the table of a mapped field?

2002-01-11 Thread Radu TRIMBITAS
From: "Alexey A. Efimov" <[EMAIL PROTECTED]> > When you load mappin.xml and get object Mapping. > Then: > MappingRoot mappingRoot = mapping.getRoot(); > Enumeration e = mappingRoot.enumerateClassMapping(); > while (e.hasMoreElements()) { > ClassMapping classMapping = (ClassMapping)e.nextElemen

Re: [castor-dev] How to find out the table of a mapped field?

2002-01-11 Thread Alexey A. Efimov
When you load mappin.xml and get object Mapping. Then: MappingRoot mappingRoot = mapping.getRoot(); Enumeration e = mappingRoot.enumerateClassMapping(); while (e.hasMoreElements()) { ClassMapping classMapping = (ClassMapping)e.nextElement(); // Here using ClassMapping you can retrive all info

Re: [castor-dev] DataSource Parameters

2002-01-11 Thread Alexey A. Efimov
Hi, Ok, this work, but parameter database-name is ignored. Try this: Its work too :). Castor just make new PoolManDataSource(). And database-name param is ignored. Thanks. -Original Message- From: Bruce Snyder [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 1:28 AM

Re: [castor-dev] Castor performance

2002-01-11 Thread VOIRY,ANTOINE (HP-France,ex2)
Hi Arnaud, how can I do this change. Url of download ? Config files ? Code Changes ? There is also something funny, I did not receive your message directly. Antoine -Original Message- From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 10:48 AM To: [EMAIL PR

Re: [castor-dev] Castor performance

2002-01-11 Thread Nick Laqua
Hi Arnaud, how complicated is it to do that (does Castor use JAXP ?) Bye Nick -Original Message- From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 10:48 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Castor performance Hi Antoine, The best way to im

Re: [castor-dev] Castor performance

2002-01-11 Thread Arnaud Blandin
Hi Antoine, The best way to improve performance in Castor is to change your parser...a lot of resources in Castor is being consumed by Xerces1. I suggest you to move to Xerces2 that is way faster than Xerces1. Also always use the SourceGenerator with the marshalling framework for better result.

[castor-dev] EasySoft JDBC-ODBC

2002-01-11 Thread Rano, Didier
Hello, This is my database.xml : But I have this exception: DatabaseNotFoundException( except ) org.exolab.castor.mapping.MappingException: Nested error: java.net.UnknownHostException: castor.exolab.org Someone knows the problem ? Thank you. Didier Rano Serv'N Data -

[castor-dev] strane code generated in castor-xml in conjunction sequence-choice

2002-01-11 Thread E. Ulrich Kriegel
Hi there, testing castor-xml we found out a strange code generation behaviour Using a schema with the following included only one Element for the choice is generated instedead of a list of choices. Removing the sequence-decls everything is ok. -- Yours

[castor-dev] org.xml.sax.DocumentHandler

2002-01-11 Thread Rano, Didier
org.xml.sax.DocumentHandler is deprecated. How change to avoid using of this class and all classes deprecatd ? Didier Rano Serv'N Data --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of:

[castor-dev] Castor performance

2002-01-11 Thread VOIRY,ANTOINE (HP-France,ex2)
Hi all, I would like to know how to improve the performance of castor for the marshalling and unmarshalling part. We are using classes generated by castor on the java side. Bye, Antoine --- If you wish to unsubscribe from this mailing, send

[castor-dev] DB-Schema-java and vice versa

2002-01-11 Thread murali
Dear all,   I have a simple question.   Is it possible,with castor, to have mapping between db to schema and schema to java ? and the vice versa situation?   Thanx   Murli