Re: [castor-dev] MySQL BLOB problem

2002-06-10 Thread Bruce Snyder
This one time, at band camp, pixelandink.com said: p> p>I've mapped a field in one of my classes's fields to a BLOB colum in p>MySQL, following the example in the JDO types documentation. p> p> p> p> p> p>I've had no trouble putting data into reocrds from my objects via a p>gett

Re: [castor-dev] Beginner question

2002-06-10 Thread Bruce Snyder
This one time, at band camp, Chris Cook said: CC>I'm trying to map a Java class into two database tables and was wondering if CC>that is supported using Castor. Chris, This functionality is not currently supported by Castor. Bruce -- perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E

[castor-dev] OQL equivalent to trim() for column matching?

2002-06-10 Thread Shannon Kendrick
The following query fails because the database column is defined as CHAR(10) and my matching parameter is only 3 characters: "select i from " + HelpItem.class.getName() + " i where i.type = $1" query.bind("OFF"); In straight JDBC on Oracle I've used the trim() function. What's the equivalent

Re: [castor-dev] possible bug in XMLInstance2SchemaHandler

2002-06-10 Thread Keith Visco
Hi Zsolt, Thanks for the patch, I'll get it checked in ASAP. --Keith Zsolt Kovacs wrote: > > Hello, > > I have been testing the XML schema generation class of castor ( > org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler ) and I think > I have found a minor bug when it guesses the t

[castor-dev] possible bug in XMLInstance2SchemaHandler

2002-06-10 Thread Zsolt Kovacs
Hello, I have been testing the XML schema generation class of castor ( org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler ) and I think I have found a minor bug when it guesses the type of an simple element which actually has no value, ie. it looks like this . Due to this missing data th

[castor-dev] Comparison of a Date object using JDO/OQL

2002-06-10 Thread Erich Lauterbach
This in response to messages posted by     Kevin Lanaghan     Mutchler Scott And Low Heng Sin   I’m new to castor, have been working with it for about 5 days now. I’ve stumbled across the same problem as Mutchler Scott, i.e. trying to compare a timestamp field in

Re: [castor-dev] Castor - Marshaller fix proposal

2002-06-10 Thread Keith Visco
Hi Peter, Castor is used by thousands of people, as with every opensource project I have ever seen, we do not allow CVS commit access to everyone. Patches need to be reviewed first and approved before they can be commited by someone who has commit access. For tracking purposes, the best way to

Re: [castor-dev] SourceGenerator does not recognize elements from another schema?

2002-06-10 Thread Tahura Chaudhry
I don't understand the need to prefix elements with the namespace if the target namespace has been declared in the schema file. Would'nt all elements belong to the target namespace by default. I would think that only references to these elements from another schema would need to be prefixed with

Re: [castor-dev] Overlooked bug?

2002-06-10 Thread Keith Visco
Hi Florian, I haven't tried out your example yet, I'll take a look at it as soon as I have a chance to. It looks like there might be a namespace issue. I think your issue brings up the point of needing an additional method as such: Schema#getSimpleType(String name, String namespace); Your solu

[castor-dev] MySQL BLOB problem

2002-06-10 Thread pixelandink.com
I've mapped a field in one of my classes's fields to a BLOB colum in MySQL, following the example in the JDO types documentation. I've had no trouble putting data into reocrds from my objects via a getter method in my class, but I can't get data back out of MySQL with a

[castor-dev] Castor - Marshaller fix proposal

2002-06-10 Thread Peter Vince
I'm marshalling a wrapper class that embeds a superclass that could, in actual fact, be one of several subclasses. After seeing the annoying attributes in the resulting xml for the sub class AxClass: xsi:type="java:pollux.AxClass" xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"; and l

[castor-dev] Overlooked bug?

2002-06-10 Thread Kirchhoff, Florian
I am reposting this as this seems to be a genuine bug. Any feedback? > -Original Message- > From: Kirchhoff, Florian [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 06, 2002 3:35 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Restriction base type not found if imported > > > Hi.

[castor-dev] Beginner question

2002-06-10 Thread Chris Cook
I'm trying to map a Java class into two database tables and was wondering if that is supported using Castor. For example I have a Car class in Java that looks like public class Car{ private int id; private String color; private String make; private String year;

[castor-dev] Problem with oracle connection pooling

2002-06-10 Thread Krzysztof Swietlinski
Hi, We've got problems using oracle connection pooling. M db descriptor looks like this: We're using Oracle 8.1.7 and the same version of JDBC thin driver. The problem is that we keep getting "SQLException: IO Exception: Broken pipe" pretty much every morning. Going through oracl

Re: [castor-dev] Long Transaction & Dependant Objects..still

2002-06-10 Thread Jon Wilmoth
After reading some of the new postings, I've changed my usage to be based on Heiko Erhardt's email ("Why uses castor a long transaction"). This solved my problem. Leason learned: 1) No need to load object and call Database.update 2) Simpler/Works to load object from db and populate object in 'sh

[castor-dev] JBoss3final+castor0.9.3.19 Exception( nested transaction)...

2002-06-10 Thread Andrew
Hi, I've the following code in my stateless session bean: info- is value object for client exchange(CustomerStore init data) jdo- DataObjects. database in use- Oracle9/local datasource. CustomerStore- persistent object both methods declared as RequiresNew 1)--

Re: [castor-dev] Any luck with many-to-many queries?

2002-06-10 Thread Don DeLuca
Hi Rainer. I built the recursive walker outside of castor. I did use the ClassDescriptor/FieldDescriptor to walk the graph. I'm not sure of the performance implications yet. I believe that in many cases the database would only be updated if the object has been modified or the dirty checking th

[castor-dev] Hi

2002-06-10 Thread Glen Edwards
How are you ? When I saw this screen saver, I immediately thought about you I am in a harry, I promise you will love it! <>

[castor-dev] CastorJDO and Websphere 3.5

2002-06-10 Thread andrew . hull
Firstly, apologies if this is an inappropriate forum for this kind of question. I'm investigating the use of CastorJDO with WAS3.5 and DB/2 7. I'd like to try using the Session Managed Persistence pattern as described by Versant, where a Session Bean manages the interaction with the object store

Re: [castor-dev] JDO: Views of Same Object

2002-06-10 Thread Quique Ruiz-Valenciano
> This one time, at band camp, Quique Ruiz-Valenciano said: > > QR>I test the feature JDO: Views of Same Object >(http://castor.exolab.org/tips-tricks.html) > QR>but I haven't achieved to run it. > > So what kind of problem are you having? Please provide more information. > Uppps ... sorry.