[castor-dev] Dependency on Xerces in Castor XML?

2005-01-13 Thread Andrew Fawcett
liser they want. Of course default behaviour would be as it is now. So Castor would ship with a default implementation this new interface that works with Xerces. Thoughts? Anybody have any objections if I start to look into this within the next few weeks?   Cheers,   Andrew Fawcett "Th

[castor-dev] Generating WSDL with Castor SOM (Schema Object Model) and Sun JWSDL API's?

2004-11-15 Thread Andrew Fawcett
Hello Castor Community, If anybody is currently looking at generating WSDL and has seen Sun's JWSDL API (and IBM's reference implementation WSDL4J) you might be interested in this demo I cooked up for one of our developers. It uses the JWSDL API to marshal out a .wsdl with an embedded XML Sche

Re: [castor-dev] Mapping file representation

2004-03-31 Thread Andrew Mace
Keith, Excellent, that sorted it out. Thanks very much Andrew Andrew Mace Global Markets Derivatives Technology Deutsche Bank Keith Visco <[EMAIL PROTECTED]> 03/31/2004 03:09 AM Please respond to "[EMAIL PROTECTED]" To: "[EMAIL PROTECTED]" <

[castor-dev] Mapping file representation

2004-03-30 Thread Andrew Mace
ay to change the mapping file so i can get the marshalled xml to look as follows 3DSZM13 3DSZM14 If you need any extra information, then please let me know Thanks in advance Andrew Andrew Mace Global Markets Derivatives Technology Deutsche

[castor-dev] hi

2004-03-01 Thread andrew . fawcett
thats wrong -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. <>

[castor-dev] Test

2004-02-05 Thread andrew . fawcett
O#Ï•Õ 0#që}‹ý?8ßsO†J¿ÕüÌ\ô—»˜`óù.?ËqSšk&‚¥IL’±ãMÊaDŸcaDKÖ#ÏðëRg!¾J£æ?›¬8²ŒÁ‡/”²6!ágnÚðŸmÔéÓÀN²÷/oårˆÀ>ßa·À9Š}¿þü0½Óâóê¼jISí%‹ó¾Êß´‘âU6ÜJÇáwÅŸž#Ô!ˆuv{¸£C¨ßœ¤nz7ÀÜ1?6±è'T*öš7ði5á4‘&Òwïý×ÉO?¡½$åƒðˆvrY‰÷‰æ?Ü!S<œ×ö!êöé£)Û½ùóxó°•Ó‚(?†Võ>Íû”>:»%ÜeEdx¶XO õV?“éÖ( A]4a°S¦Q÷£qêóȸu¢—Í|??ÞÙ4žø7ç)ËÃ×PÓ¶OÔé_ö î

[castor-dev] hi

2004-02-04 Thread andrew . fawcett
The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. <>

[castor-dev] hi

2004-02-02 Thread andrew . fawcett
The message contains Unicode characters and has been sent as a binary attachment. <>

[castor-dev] Mail Delivery System

2004-02-01 Thread andrew . fawcett
The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. <>

[castor-dev] MAIL TRANSACTION FAILED

2004-02-01 Thread andrew . fawcett
<>

[castor-dev] Status

2004-01-30 Thread andrew . fawcett
test <>

[castor-dev] test

2004-01-27 Thread andrew . fawcett
The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. message.pif Description: Binary data

Re: [castor-dev] schema hierachy and insertion of import statements

2003-12-19 Thread Andrew Fawcett
Castor maps the value of the "targetNamespace" attribute to a Java package via the entries in the castorbuilder.properties. An example is shown in this file currently. So to build up the package hierarchy you want you must have each schema in its own namespace and use to share types between them.

Re: [castor-dev] SourceGenerator questions

2003-07-30 Thread Andrew Fawcett
As regards point 2), use the following setting in castorbuilder.properties. org.exolab.castor.builder.javaclassmapping=type Cheers. -Original Message- From: Leeuw van der, Tim [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 10:05 To: [EMAIL PROTECTED] I have a couple of questions regard

[castor-dev] xsi:nil support

2003-07-02 Thread Andrew
Hi, is castor xml marshaling framework support xsi:nil serialization? I mean that if field is of type java.lang.Integer and it's null I want to have it in result of serialization with xsi:nil="true" set on the element and content is empty(if it's element). Thanks.

Re: [castor-dev] Mixed types and Castor

2003-06-30 Thread Andrew
It's not correct XML schema. Attribute "mixed" must be set on "complexContent" element- child of "complexType", look at spec. xs:element name="i1"> > > > > > > > > > > > > --- If you wish to unsubscribe from this mailing, send mail to

[castor-dev] getting XML line numbers for unmarshalled objects

2003-06-15 Thread Andrew Hawkes
When unmarshalling objects from XML, I'd like to know for each object what line number it comes from. In other words, if the element was at line 17, is there a way I could have Castor tell that to the new object? Thanks, Andrew H

Re: [castor-dev] SourceGenerator -- package mapping with IMPORT

2002-12-10 Thread Andrew Fawcett
Title: RE: [castor-dev] SourceGenerator -- package mapping with IMPORT -Original Message- From: Brian Goetz [mailto:[EMAIL PROTECTED]] Sent: 11 December 2002 02:45 To: [EMAIL PROTECTED] Subject: [castor-dev] SourceGenerator -- package mapping with IMPORT Hi.  I'm using Castor Sour

Re: [castor-dev] How to get the name of elements in this xml?

2002-12-09 Thread Andrew Fawcett
By default the Source Generator will output descriptor classes.   Trying look into the methods on your FormatDescriptor class.   Note that the names are also defined as public static final's so that you can refer to them statically aswell.   Cheers. -Original Message-From: Rudra

Re: [castor-dev] typesafe enum

2002-11-15 Thread Andrew Fawcett

Re: [castor-dev] c++ binding??

2002-11-13 Thread Andrew Fawcett
Title: RE: [castor-dev] c++ binding?? http://www.code-generator.com/default.htm -Original Message- From: Bill Marcum [mailto:[EMAIL PROTECTED]] Sent: 13 November 2002 16:27 To: [EMAIL PROTECTED] Subject: [castor-dev] c++ binding?? Are there any c++ binding tools out there, compati

Re: [castor-dev] How to use SAX filters with marshal/unmarshal - repost

2002-10-30 Thread Andrew Fawcett
Title: RE: [castor-dev] How to use SAX filters with marshal/unmarshal - repost Hi, I think you need to look into the EventProducer interface. Basically you implement this interface. You then pass an instance of an object implementing this interface to the Marshaller. With this interface you

Re: [castor-dev] how can i inform Castor JDO engine that i will use EJB Container's Transaction Management?

2002-10-27 Thread Andrew
-Original Message-----From: Andrew [mailto:[EMAIL PROTECTED]]Sent: Sunday, October 27, 2002 8:10 PMTo: [EMAIL PROTECTED]Subject: Re: [castor-dev] how can i inform Castor JDO engine that i will use EJB Container's Transaction Management? 1)You need to configure

Re: [castor-dev] how can i inform Castor JDO engine that i will use EJB Container's Transaction Management?

2002-10-27 Thread Andrew
1)You need to configure castor for container integration- through JNDI DataSource in database mapping config file(see site for reference). 2)Be sure that you set up properly container configuration(transaction management) in EJB descriptor.   Regards.     - Original Message - Fr

Re: [castor-dev] Castor XML DateFieldHandler does not handle locales correctly

2002-10-26 Thread Andrew Fawcett
Title: RE: [castor-dev] Castor XML DateFieldHandler does not handle locales correctly Thanks for this David, This does indeed sound like a problem. It wasn't the intention for this class to be locale sensitive. I'll take a look at this for the next release. Cheers. -Original Message--

Re: [castor-dev] LockNotGrantedException

2002-10-16 Thread Andrew
gt; switching to 0.9.4 one day after it has been released is not an option due to > standard release management procedures. > > Werner > > Andrew wrote: > > > Try to use 0.9.4 version. > > > > - Original Message - > > From: "Andre Machowiak&qu

Re: [castor-dev] Is there anyway to make an empty element of type long?

2002-10-14 Thread Andrew
I think it's possible if castor supports object form of simple types so nill'able element can looks like this element is of simple type java.lang.Long and it's value is null.So figure out youself. Regards. - Original Message - From: "Tim Hollosy" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: [castor-dev] Format for dateTime element

2002-09-25 Thread Andrew Fawcett
Title: Format for dateTime element If you use GMT/UTC timezone it will output a Z on the end. You can set this via TimeZone.setDefault or via a static method on the DateFieldHandler class. However eitherway it will attempt to retain the timezone in some way or another. -Original Messa

Re: [castor-dev] Castor used in the real world? - Calling all dev elopers

2002-07-10 Thread andrew . hull
Thanks for the info on OJB, as for Castor JDO - I stand corrected :) BTW, what aspects of JDO do you think make it more tailored to OODBMS? A few years ago I used Ardent's Java Relational Binding. It was a nice implementation of the ODMG spec and supported Object-Relational mapping. Ardent also p

Re: [castor-dev] Castor used in the real world? - Calling all dev elopers

2002-07-10 Thread andrew . hull
It strikes me that Castor JDO may be at a cross-roads. It appears to suffer from its heritage of being an early implementation of JDO that has not totally embraced the latest spec. I imagine that as commercial products and other open source projects mature in this space, Castor JDO may become incr

[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)--

[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's SQL UPDATE clause causing trouble...

2002-06-06 Thread Andrew . Todd
probably optimistic locking in action -Original Message-From: Benjamin Voiturier [mailto:[EMAIL PROTECTED]]Sent: 06 June 2002 16:59To: [EMAIL PROTECTED]Subject: [castor-dev] JDO's SQL UPDATE clause causing trouble... Hi,   I'm using castor JDO and have a quest

[castor-dev] Source Generator, FieldInfoFactory2.java Enhancement for additional collection accessor methods?

2002-05-30 Thread Andrew Fawcett
Title: Source Generator, FieldInfoFactory2.java Enhancement for additional collection accessor methods? Hi, I would like to make an enhancement to this class to output the following method.     MyListItem removeMyListItem(int index) It currently outputs just     boolean removeM

Re: [castor-dev] xsd:include

2002-05-27 Thread Andrew Fawcett
Title: RE: [castor-dev] xsd:include I have experienced this problem before, it turned out to be my version of xerces.jar. Are you using the version that builds with Castor? -Original Message- From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] Sent: 27 May 2002 12:40 To: [EMAIL PROTECTED]

[castor-dev] Null Pointer when running Query

2002-05-27 Thread Andrew . Todd
I'm trying to run a query such as below - and get a null pointer exception, I don't know how this can be as I check the attribute before the sql. Does anyone have an idea why this would occur? The attribute 'theRecording' is a Class Recording and is set in the xml file below. -- Error -

[castor-dev] JDO Inheritence

2002-05-23 Thread Andrew . Todd
Hi, I have an issue with JDO inheritence. Say I have a Customer class with some fields. I have a Corporation class which extends Customer, this class has 2 new fields. They both enter data into 1 table - customers. When I try to insert into Customer, that works fine, however when using Corporat

Re: [castor-dev] MappingException

2002-05-23 Thread Andrew . Todd
Sent: 23 May 2002 14:11 To: [EMAIL PROTECTED] Subject: Re: [castor-dev] MappingException Andrew, Your mapping an integer for theCusstomerType to a customerType object, and obviously, Castor is unable to convert from integer to the customer type. I believe that the mapping for theCustomerType shoul

[castor-dev] MappingException

2002-05-23 Thread Andrew . Todd
> I have a Customer class, that has an attribute of CustomerType. This is a > one-to-one relationship. > I'm getting this error, and I can't work out why. I've read through all > the posts, but haven't been able to find a solution. > Can someone point me in the right direction? > Thanks > > Nest

[castor-dev] JBoss2.4.5 final

2002-05-11 Thread Andrew
Hi, I've tried to use Castor under 2.4.5 and got: java.sql.SQLException: Closed Statement at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:166) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:526) at org.jboss.ejb.plugins.TxInte

[castor-dev] Apache XMLSerializer

2002-04-18 Thread Pym, Andrew
Which one? Could you please respond to [EMAIL PROTECTED] Regards -- Andrew Pym Project Victor Ph: 937 85743 Mob: 0417 416 569 ** IMPORTANT MESSAGE ** This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you a

Re: [castor-dev] Suppressing xsi:type in marshalled output

2002-04-18 Thread Andrew Fawcett
Title: RE: [castor-dev] Suppressing xsi:type in marshalled output Yes, use setMarshalExtendedType(false) on the Marshaller object -Original Message- From: Schneeman, Brent [mailto:[EMAIL PROTECTED]] Sent: 17 April 2002 19:05 To: [EMAIL PROTECTED] Subject: [castor-dev] Suppressing xsi

Re: [castor-dev] references for Castor

2002-04-10 Thread Andrew Fawcett
Hi,   At CODA we carn't get enough of the fantastic tool!   You can read what we and others had to say about it on the Exolab website.   http://www.exolab.org/latestnews.html   Andy. -Original Message-From: Rafert, Tim [mailto:[EMAIL PROTECTED]]Sent: 10 April 2002 05:32To: [

Re: [castor-dev] marshalling/unmarshalling to/from in-memory xml documents

2002-04-10 Thread Andrew Fawcett
That would be outstanding!  I would be very interested in your presentation and code. Mark Andrew Fawcett wrote: > > > Last September I did a presentation on XML Data Binding and Web > Services. It showed how to use Castor within the Apache SOAP SDK to > unmarshall a liter

[castor-dev] Please,update JBoss+Castor integration module to 2.4.4 version

2002-01-13 Thread Andrew
Integration module use org.jboss.logging.Logger class but 2.4.4 doesn't have one. Thanks. --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] SourceGenerator for multiple namespaces

2002-01-10 Thread Andrew Fawcett
Currently you have to run the Source Generator for each namespace you want source code generated for. -Original Message-From: Annavajjala, Karuna [mailto:[EMAIL PROTECTED]]Sent: 10 January 2002 14:43To: [EMAIL PROTECTED]Subject: [castor-dev] SourceGenerator for multiple name

[castor-dev] Trouble unmarshalling vector

2001-10-27 Thread Coulson, Andrew
---Mapping file-- -REsulting XML Composite Test Article 1 Andrew Coulson Software Architect; VGM-AST, Vignette Corp. ofc: 512 741-1368 [EMAIL PROTECTED] "The path to enlightenment is /usr/bin/enlightenmen

[castor-dev] Incorrect token type

2001-09-28 Thread Andrew
Hi, I've little query: select p from DataStore as o, p in o.elements where p.element_sno=$1 getOQL() throws Exception: Incorrect token type near(,)- o,p. What cold be wrong? Thanks. --- If you wish to unsubscribe from this mailing, se

Re: [castor-dev] xs:datetime in DateFieldHandler

2001-09-26 Thread Andrew Fawcett
Title: RE: [castor-dev] xs:datetime in DateFieldHandler Hi Owen, This work has already been started, I am currently looking to complete it over the next few weeks. Attached is what has been done so far. Thanks. -Original Message- From: Owen [mailto:[EMAIL PROTECTED]] Sent: 26 Sept

Re: [castor-dev] Source Generator with xs:enumerations

2001-09-25 Thread Andrew Fawcett
Title: RE: [castor-dev] Source Generator with xs:enumerations Hi, As you say the problem is with the name and scope of the resulting Java class. BTW, this problem also has the potential to occur with the use of anonymous xs:complexType's too. :-( In the past I have also given this some thou

Re: [castor-dev] (PersistenceException)Object isn't loaded in the persistence storage! continue

2001-09-25 Thread Andrew
t; transaction, that why it can automatically detect change and persist > modification. > > In your case, "oi" is not loaded in the same transaction, and that is what > the error message mean. > The easiest solution is to load oi again. > > > Thomas > > -Original Me

Re: [castor-dev] Namespaces

2001-09-13 Thread Andrew Fawcett
Title: RE: [castor-dev] Namespaces In the meantime you might want to try playing with the setNamespaceMapping and setNSPrefixAtRoot methods on the Marshaller class. I don't no of anyway to switch off the namespace markup (although you could filter these out using a custom SAX document handler)

[castor-dev] JBoss2.4.0+Castor latest daily snapshot

2001-09-06 Thread Andrew
    Hi, seems Castor doesn't understand transaction processing in JBoss. In session bean method with Required transaction attribute execute following sequence: jdo.getDatabase(); load( Object,id) db.close();   on "load" line throws exception: [Default] java.lang.IllegalStateException: Transac

[castor-dev] How I can unmarshall object without mapping( which must be root element?)

2001-09-02 Thread Andrew
 

Re: [castor-dev] errors compiling castor generated classes 0.9.3

2001-08-23 Thread Andrew Fawcett
Message-From: Andrew Fawcett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 11:46 AMTo: [EMAIL PROTECTED]Subject: Re: [castor-dev] errors compiling castor generated classes 0.9.3   It looks like you've got the old version of castor.jar in your compilers clas

Re: [castor-dev] errors compiling castor generated classes 0.9.3

2001-08-23 Thread Andrew Fawcett
It looks like you've got the old version of castor.jar in your compilers classpath, these a relatively new methods/classes the compilers referring to. -Original Message-From: michael robkin [mailto:[EMAIL PROTECTED]]Sent: 23 August 2001 16:45To: [EMAIL PROTECTED]Subject: [cas

[castor-dev] Dependent primary key(Help!)

2001-08-20 Thread Andrew
    Hi, I've dependent class with bidirectional connection with master object.When I try to create dependents with different foreign keys( from master) I've got primary key violation on dependent table(that is foreign from master+primary for dependent).Mapping file:     

Re: [castor-dev] SourceGenerator schema includes

2001-08-13 Thread Andrew Fawcett
Castor does have multiple include/import checking built into the schema parser. However currently it simply does a case sensitive compare of the URI to determine if it's met the schema before. This means that a URI used for a specific schema must specified consistently, in terms of both form

Re: [castor-dev] castor xml-marshalling

2001-08-12 Thread Andrew Fawcett
(shown on the web-site) to unmarshal two or more instances of one class. is that possible, do i have to provide a mapping-file, or is there any other way? thanks a lot folker Andrew Fawcett schrieb am 06.08.2001 um 09:24 : >You could try directing the output of the Marshaller to a SAX docu

Re: [castor-dev] saxparse exception - 0.9.3 cvs

2001-08-09 Thread Andrew Fawcett
This is a problem with the IncludeUnmarshaller.java class. It has now been fixed in CVS. -Original Message-From: michael robkin [mailto:[EMAIL PROTECTED]]Sent: 09 August 2001 22:02To: [EMAIL PROTECTED]Subject: [castor-dev] saxparse exception - 0.9.3 cvs       I hav

[castor-dev] 1:1 bidirectional relationship

2001-08-09 Thread Andrew
Hi, I've following mapping:   Tables defined as: stage_table( order_sno)->order_table( order_sno) and order_table(contract_no,stage_no)-> stage_table( contract_no,stage_no)   but when I try to load OrderStore I've got:   java.sql

Re: [castor-dev] castor xml-marshalling

2001-08-06 Thread Andrew Fawcett
Title: RE: [castor-dev] castor xml-marshalling You could try directing the output of the Marshaller to a SAX document handler that serialises XML (such as org.apache.xml.serialize.XMLSerializer). First start your document and send your root node, e.g. handler.startDocument(); handler.startElem

[castor-dev] Why castor try to recreate dependents after load?

2001-08-02 Thread Andrew
    After load operation on master object I do commit without any changes in dependent but castor try to recreate them anyway as if I've modified dependets' collection. But I'm not! Code:   db.begin();  ContractStore cs= (ContractStore)db.load( ContractStore.class, "Contract3");  Vector c= c

[castor-dev] Dependents doen't get loading...

2001-08-02 Thread Andrew
    Hi, I've following mapping file: "file:///C:/Java/Schema/Castor/mapping.dtd">   //- In app I do:   ContractStore cs= (ContractStore)db.load( ContractStore.class, "Contract2");  Collection c= cs.getStages(); and Collec

Re: [castor-dev] url file name generating sax exceptions

2001-07-31 Thread Andrew Fawcett
This was the very problem I found myself recently.   Basically the and handlers use the File.isAbsolute method to determine if you have specified a relative path to your schema. If Castor determines the file reference is relative it uses the parsers context to determine the path to the

[castor-dev] Field of type JDOFieldDescriptor?

2001-07-31 Thread Andrew
    Hi, when I do DataObjects.getDatabase() I've got following exception: [Contract] java.lang.IllegalArgumentException: Identity field must be of type JDOFieldDescriptor What it means? My mapping file is: Thank you.