Re: [castor-dev] Key generator

2003-03-06 Thread Bruce Snyder
This one time, at band camp, Eric Hunt said: EH>I've posted this before, but never really got anywhere with it. EH> EH>Is anyone out there successfully using the key generator for Oracle? Before I elaborate at length, I wanted to have a sense that someone has already come across this problem.

Re: [castor-dev] mapping a class to a table with a "triple key" (?)

2003-03-06 Thread Bruce Snyder
This one time, at band camp, Alexandre Hoang said: AH>I use MS SQL Server and I have a table named "MyTable", whose primary key is AH>a "triple key". AH>Well, may be that's not the right vocabulary, but I hope you'll see what I AH>mean: AH>- The columns in "MyTable" are: "ID1", "ID2", "ID3", "Desc

[castor-dev] Key generator

2003-03-06 Thread Eric Hunt
Hi all,   I've posted this before, but never really got anywhere with it.   Is anyone out there successfully using the key generator for Oracle?  Before I elaborate at length, I wanted to have a sense that someone has already come across this problem.  Pls let me know if you have any experie

Re: [castor-dev] Websphere and Castor configuration

2003-03-06 Thread Stephen Ince
Terry, What is the path of your database mapping file? I was using "/com/opendemand/jdo/database.xml", and this file is located in a jar file under WEB-INF/lib. Steve - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 6:53 PM Subject:

Re: [castor-dev] Websphere and Castor configuration

2003-03-06 Thread Sudhir Bhojwani
Did you ever get the TransactionManager thing working in Websphere. Its straight forward in Weblogic, BES, and Jboss. Or do I have to modify the JDO.java class to support this.   sudhir -Original Message-From: Matthew Baird [mailto:[EMAIL PROTECTED]Sent: Thursday, March 06, 2003

Re: [castor-dev] Explicit ns prefix for the root element of an xmldocument....

2003-03-06 Thread Syed Wasim Ali
Keith, That wasn't a problem with the latest 0.9.3.4 build available after all. My ant build file was referring to the older castor file from 01-06-03 CVS snapshot that were producing unexpected results. mymarshaller.setNamespaceMapping("ns1", "http://foo.com/schema1";); works as you said earl

Re: [castor-dev] Websphere and Castor configuration

2003-03-06 Thread terry . oconnor
We are using WAS 4.x.. If both the config files are in the same directory as the class that is loading the JDO you should have no problem. Assuming your initialization code looks like this from the examples? _mapping = new Mapping( getClass().getClassLoader() ); _mapping.setLogWri

Re: [castor-dev] castor - validation problems :(( [with JBOSS usage]

2003-03-06 Thread Matthew Baird
make sure you remove the copy of castor that ships with jboss if you are trying to use a newer library. -Original Message- From: tek1 [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 10:12 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] castor - validation problems :(( [with JB

Re: [castor-dev] Websphere and Castor configuration

2003-03-06 Thread Matthew Baird
on a related note: how did you get the JTA in websphere to play nice with castor? In JBOss there is a connector via JMX, what do I do in websphere? -Original Message-From: Stephen Ince [mailto:[EMAIL PROTECTED]Sent: Thursday, March 06, 2003 11:59 AMTo: [EMAIL PROTECTED]Subjec

Re: [castor-dev] Explicit ns prefix for the root element of an xmldocument....

2003-03-06 Thread Keith Visco
Hi Syed, > > Thanks again for the prompt reply. Here is the code snippet that shows > how I attempted to serialize a castor generated java object: > > Marshaller mymarshaller = new Marshaller(new PrintWriter(System.out)); > mymarshaller.setNamespaceMapping("ns1", "http://foo.com/schema1";); > /

Re: [castor-dev] setNamespaceMapping usage

2003-03-06 Thread Keith Visco
Hi Duncan, See inline... Duncan Hoyle wrote: > > Hi > > Can someone please help me understand the problem here. I've read the > archives and they suggest that I need to use setNamespaceMapping so I > have. The xml appears to unmarshal ok (except for the xml:lang problem) > but the marshalled

[castor-dev] How to control src gen for .types classes?

2003-03-06 Thread Jason Dillon
Hello, I have been struggling for several hours trying to get Castor to use different names for the complex type classes (which end up in a .types package). Is this possible? Or am I stuck with the names it decides to use? I have tried playing with a binding to change the classname, but so far I

Re: [castor-dev] castor - validation problems :((

2003-03-06 Thread Keith Visco
Hi Daniel, I think your problem is here: > > # An implementation which uses the Jakarta RegExp library > org.exolab.castor.regexp=org.exolab.castor.util.JakartaRegExpEvaluator > > # Uncomment the following to basically supress evaluation of Regular > expressions > org.exolab.castor.regexp=org.

Re: [castor-dev] castor - validation problems :((

2003-03-06 Thread Arnaud Blandin
Hi Daniel, It could be great if you could isolate the problems sending a small schema and a small piece of code that demonstrates the problem...even better if you write a CTF test case, it will be easier for us to debug it. >From the information below I can't really help you: min/maxLength are wor

[castor-dev] Re: Fw: Castor-XML

2003-03-06 Thread Hiran Chaudhuri
Hi, Bruce. It comes to me that I must clarify some facts first: Tamino is a native XML database. There are no tables/rows but only document types and documents. Document types are defined with XSD Schemas. As SQL is designed for tabular oriented data (and the result is always a table), XQuery is

Re: [castor-dev] castor - validation problems :((

2003-03-06 Thread Patrick van Kann
I'm no Castor XML expert but it looks like your culprit is this # Uncomment the following to basically supress evaluation of Regular expressions org.exolab.castor.regexp=org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluato r By uncommenting that, it seems like you are instructing Castor to use a Re

[castor-dev] castor - validation problems :((

2003-03-06 Thread Daniel.Stacewicz
I've got a big problem with castor validation issues. I've generated java code using SourceGenerator (with full options, descriptors etc.) from my xsd. I've put in my xsd some basic validation rules. (for example concerning length o social security numbers -> maxOccurs minOccurs and some validati

Re: [castor-dev] [JDO] 1 class: n table

2003-03-06 Thread Sandor KELEMEN
Thanks for the advise, but unfortunately I can't change the class definitions. br, Sanyi - Original Message - From: "Ralf Joachim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 6:14 PM Subject: Re: [castor-dev] [JDO] 1 class: n table > You may also use the

[castor-dev] Tamino SQL Support (was Castor-XML)

2003-03-06 Thread Hiran Chaudhuri
Hi, Bruce. It comes to me that I must clarify some facts first: Tamino is a native XML database. There are no tables/rows but only document types and documents. Document types are defined with XSD Schemas. As SQL is designed for tabular oriented data (and the result is always a table), XQuery is

[castor-dev] mapping a class to a table with a "triple key" (?)

2003-03-06 Thread Alexandre Hoang
Hello, I use MS SQL Server and I have a table named "MyTable", whose primary key is a "triple key". Well, may be that's not the right vocabulary, but I hope you'll see what I mean: - The columns in "MyTable" are: "ID1", "ID2", "ID3", "Description". - Each element in "MyTable" my table is (uniquely

[castor-dev] Unsubscribe

2003-03-06 Thread Ronald Stutz
--- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

[castor-dev] Carsh with castor 0.9.4.3

2003-03-06 Thread HENNEAUX Serge
Hi, When I carry out the sequence of following operation with the version of Castor 0.9.4.1 I do not have a problem ! db.begin(); thequery = createSelect(db...); result = thequery.execute(); while (results.hasMore()) { ... } thequery.close(); db.rollback(); db.close(); But when this sequence of