Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-13 Thread g r i t s e n k o
Seriously, guys, does anybody have any constructive ideas why Castor ignores ‘map-to xml=’resume’ in class descriptor for Resume class, which implements InterfaceResume, which at run time is represented by proxy class with name starting with '$' , e.g. $Proxy0 The effect I want to achieve is t

Re: [castor-dev] Update: Unmarshalling a Vector of Objects/What should

2004-04-13 Thread Keith Visco
Hi Earl, Castor will work with Vector and List as well, I don't have any problems using them, so I'm not sure what kind of issues you were running into. If you have a small, complete example you can share (in a zip format) that demonstrates the issue, please send it along and I can run it here

Re: [castor-dev] OQL Query Editor?

2004-04-13 Thread Rich Trevor
Thanks. Got it! - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 13, 2004 10:48 AM Subject: Re: [castor-dev] OQL Query Editor? > > This one time, at band camp, Rich Trevor said: > > RT>Are there any Java GUI OQL query editors out

[castor-dev] Again: Castor uses query-value for table x as key for table y, too

2004-04-13 Thread Frank Bruch
Hello again, please excuse my 2nd posting of the same problem, it'll be the last time. I just have absolutely no idea, what's the problem here and would really appreciate at least a comment like "read the f.. page ..." or "you silly! why don't you just..." or "query for xxx in the archive"! Wh

[castor-dev] Update: Unmarshalling a Vector of Objects/What should Setter Method look like?

2004-04-13 Thread Earl . Armstrong
UPDATE** I (kind of) figured this out. While Castor does not appear to Unmarshall a Vector of objects into their original Types, It does UnMarshall an Array of objects. Probably just a basic misunderstanding of what Castor does on my part. I changed the Getter and Setters below to return/accep

Re: [castor-dev] OQL Query Editor?

2004-04-13 Thread Bruce Snyder
This one time, at band camp, Rich Trevor said: RT>Are there any Java GUI OQL query editors out there? RT> RT>Also, I see a few references in the archives to a "OQL Query Analyzer GUI RT>tool". Does anyone know what this is or where to get it? RT> RT>How about OQL query examples? Is there anything

[castor-dev] OQL Query Editor?

2004-04-13 Thread Rich Trevor
Are there any Java GUI OQL query editors out there? Also, I see a few references in the archives to a "OQL Query Analyzer GUI tool". Does anyone know what this is or where to get it? How about OQL query examples? Is there anything other than the examples in the src/tests/jdo and src/examples/jdo

Re: [castor-dev] Duration type in JDO]

2004-04-13 Thread Bruce Snyder
This one time, at band camp, Werner Guttmann said: WG>after a litztle bit of debugging, I've traced this exception to the following code fragementin Types.java: WG> WG>public static Class typeFromName( ClassLoader loader, String typeName ) WG>throws ClassNotFoundException WG>{ WG

[castor-dev] No configuration loaded for database

2004-04-13 Thread Grinvald, Edward
Hello all, I'm getting this error with the following setup: Config file:    class-name="com.ca.brightstor.portal.jdbc.sqlserver.SQLServerDriver"  url="" >     Please note the localized characters in the db name and the jdbc driver. I try to run the following code which works fine if no loca

Re: [castor-dev] ObjectModifiedException using double in MySql with out size.

2004-04-13 Thread Gonzalo Abollado
Werner, here is the schema. Regards. # MySQL-Front Dump 2.5 # # Host: localhost Database: costes # # Server version 4.0.13-nt USE costes; # # Table structure for table 'facturas' # DROP TABLE IF EXISTS facturas; CREATE TABLE facturas

[castor-dev] Repost/Clarification: Unmarshalling a Vector of Objects/What should Setter Method look like?

2004-04-13 Thread Earl . Armstrong
I updated the Getter and Setter Methods. I realized that I had been playing, trying to get them to work and had made them unreadable. I also added some comments to explain what I was doing and what I was expecting. Thanks for reading this! I'm trying to UnMarshal a collection of objects tha

Re: [castor-dev] JBOSS 3.2 ** please dis-regard previous email ** review this one instead ** thanks. (fwd)

2004-04-13 Thread Bruce Snyder
-- Forwarded message -- Date: Tue, 13 Apr 2004 01:39:08 -0500 From: Don Vines <[EMAIL PROTECTED]> To: Bruce Snyder <[EMAIL PROTECTED]> Subject: RE: [castor-dev] JBOSS 3.2 ** please dis-regard previous email ** review this one instead ** thanks. Bruce, The email to castor-dev

Re: [castor-dev] ObjectModifiedException using double in MySql with out size.

2004-04-13 Thread Werner Guttmann
Gonzalo, can you please send me the SQL schema you use to generate the table for Factura, and - if possible - some SQL to populate the table so that below test works. Werner On Tue, 13 Apr 2004 11:23:46 +0200, Gonzalo Abollado wrote: > >Sorry, I forgot to send you the mapping file > > >

Re: [castor-dev] sourcegenerator bug ??

2004-04-13 Thread Nick Laqua
Hi, again, it is me. After going through the SourceGenerator code, it seems that this is not a bug but the "enumeration" facet is basicly not supported for xsd:int (and other decimal types). The corresponding code is TypeConversion.convertTypes(...). In case of xsd:string, the enumeration face

Re: [castor-dev] ObjectModifiedException using double in MySql with out size.

2004-04-13 Thread Gonzalo Abollado
Werner, thanks for your replay. Basically it´s a simple long transaction update. The code has some abstract classes but I will try to send you some thing to work with. Basically, all the ObjectModifiedException problems I´m having are for the same reason, Castor does the dirty checking and get

Re: [castor-dev] ObjectModifiedException using double in MySql with out size.

2004-04-13 Thread Gonzalo Abollado
Sorry, I forgot to send you the mapping file -O

Re: [castor-dev] sourcegenerator bug ??

2004-04-13 Thread Nick Laqua
Hi, I have to correct myself. When using an explicit type and referencing it from an element definition, the class code for the type is generated correctly but for the element, still an int is returned instead of an Object. So it also doesn't work with this approach. xsd:

[castor-dev] sourcegenerator bug ??

2004-04-13 Thread Nick Laqua
Hi, after upgrading to 0.9.5.3 and regenerating our xml classes, it seems that castor doesn't generate correct code for type definitions using restrictions for xsd:int. The xml fragment looks like this: