[castor-dev] optional date attribute throws null pointer exception

2002-10-03 Thread daan
H, I have an optional date attribute that is not in my xml. I unmarshal it in generated code. Now i ask for the date and it returns something not null. Calling a method on whatever is return throw a NullPointerException. The method called does not appear in the stack trace. If I print the object

Re: [castor-dev] toString() methods

2002-10-03 Thread daan
H Tjeerd, Looks good You don't get rid of the in this example? I was thinking of putting code like this in a class to inherit from, but that reduces option, or you'd have to do it every time. > "Tjeerd" == Verhagen, Tjeerd <[EMAIL PROTECTED]> writes: > From: "Verhagen, Tjeerd" <[EMAIL

Re: [castor-dev] InstantDB and KeyGenerators

2002-10-03 Thread Guy Di Fulvio
Why don't you use MAX? -Message d'origine- De : David Blevins [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 4 octobre 2002 03:05 À : [EMAIL PROTECTED] Objet : [castor-dev] InstantDB and KeyGenerators Hi All, I've been fighting with InstantDB and Castor trying to figure out how to get C

Re: [castor-dev] Problem in inserting table with foreign key

2002-10-03 Thread Guy Di Fulvio
Yes you are right! Guy -Message d'origine- De : Dave Carlson [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 3 octobre 2002 23:23 À : [EMAIL PROTECTED] Objet : Re: [castor-dev] Problem in inserting table with foreign key This is exactly the same problem that I posted in a message several da

[castor-dev] OIDs/surrogate keys

2002-10-03 Thread Thomas Olausson
Maybe little off-topic, but... To have surrogate keys (like an sequence-generated OID) in every table, would simplify the life for castor-users. What are the pros aside from that? In most databases I come across, people don't use it. For instance, if there's a ordertable it has a order_id and

Re: [castor-dev] Can multiple column PKs be used in a foreign keyscenario?

2002-10-03 Thread Bruce Snyder
This one time, at band camp, Thomas Olausson said: TO>Can multiple column PKs be used in a foreign key scenario? Thomas, No, currently they cannot. Please see this bug report: http://bugzilla.exolab.org/show_bug.cgi?id=925 Bruce -- perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E

[castor-dev] Can multiple column PKs be used in a foreign key scenario?

2002-10-03 Thread Thomas Olausson
Can multiple column PKs be used in a foreign key scenario? I have this: table BOOK (book_id,book_name) PK is book_id table PAGE (book_id,page_id,page_data), PK is book_id,page_id The Book java class has a vector of pages. The Page java class has it's data. I don't necessarily need naviga

[castor-dev] InstantDB and KeyGenerators

2002-10-03 Thread David Blevins
Hi All, I've been fighting with InstantDB and Castor trying to figure out how to get Castor to play nicely with InstantDB's AUTO INCREMENT, but can't seem to find a matching Castor KeyGenerator that fits. I've grep'ed the source a bit and see a couple InstantDB specific files, not to big though.

[castor-dev] How to marshal collections with latest Castor ?

2002-10-03 Thread Vadim Solonovich
Hi ! My question is about marshalling collections in latest Castor. I notice that marshalling behaviour had changed since 0.3.9.21 Assuming I have an object like this class List { java.util.Collection _liList ; java.util.Collection getLi() { return this._liList ; }

Re: [castor-dev] toString() methods

2002-10-03 Thread Verhagen, Tjeerd
Keith, We use a log4j Category instance, for logging. Remove or replace the cat reference with the for castor, or remove them. The code: /** Converts a Castor ValueBean instance into a XML String instance. */

[castor-dev] xml transient problem

2002-10-03 Thread Halfin, Elan
I marked one of my fields as transient but it still shows up in my marshalled output. What am I doing wrong? public class X { public String getCoCd() {...} public void setCoCd(String a_coCd) { ...} } And my mapping file. I'm not sure why transient exists at 2 levels but I tried

[castor-dev] Long transactions and optimistic locks

2002-10-03 Thread David Colwell
Title: Long transactions and optimistic locks I am attempting to read an object structure from Thread-A, modify it, and update the full structure using a call to the long transaction update( ) method.  In the meantime, Thead-B queries for a read-only object which happens to be referenced in th

[castor-dev] RE: jdo setConfiguration problem with sybase

2002-10-03 Thread Fong, Kakeungjohnny
Hi, Thank you for the prompt reply. I've tried ur method, but the problem doesn't go away. java.lang.NullPointerException at org.exolab.castor.jdo.engine.JDOClassDescriptor.(Unknown Source) at org.exolab.castor.jdo.engine.JDOMappingLoader.createDescriptor(Unknown Source)

Re: [castor-dev] Announcing: O2XMapper Map Objects to XML Visually !!!

2002-10-03 Thread Mujtaba,Shelly
Thanks Bruce Yes, I have, but quite frankly I haven't delved into that side of the world too much. So I have to read up on it before I tackle it. My goal for the next build (I am hoping 2 weeks) is to improve user documentation,provide better build system and fix a few UI bugs. Meanwhile I am hopi

Re: [castor-dev] Announcing: O2XMapper Map Objects to XML Visually !!!

2002-10-03 Thread Arnaud Blandin
Hi, Thanks a lot for such a tool, we'll give it a try for sure and provide you some feedback. Arnaud > -Original Message- > From: Mujtaba,Shelly [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 03, 2002 3:43 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Announcing: O2XMapper Ma

Re: [castor-dev] Long transactions - how to do it (again!)

2002-10-03 Thread Verhagen, Tjeerd
Hi Boris, I don't think you have a other option. The implements interface TimeStampled simmulates the actual storing of that inforamtion in the db. So to make use of that same object again, you need to keep it. Getting the same object later again, will give it a new timestamp. The two solluti

[castor-dev] Announcing: O2XMapper Map Objects to XML Visually !!!

2002-10-03 Thread Mujtaba,Shelly
What is it? O2XMapper provides a user interface for Mapping Java Objects to XML. The application allows user to import Java classes and map them to an XML schema by generating a Castor XML mapping file. The tool performs series of validations to ensure that classes and fields are correctly mapped.

[castor-dev] Unmarshalling object with Nested attributes

2002-10-03 Thread Neo Sok Lay
HI, >From the documentation, nested attributes are supported for jdo<->database read & write. Is there any support for jdo<->xml ? I wrote a mapping file for my object containing nested attributes and tried serializing, it seems to serialize it nicely. However, when I deserialize the xml file, t

Re: [castor-dev] 0.9.3.21 any object unmarshalling problem - givesAnyNode not object - update

2002-10-03 Thread James Richardson
James Richardson wrote: > James Richardson wrote: > >> > > If its any help, it appears to work fine in 0.9.3 ( which was the > previous version I had ) > > Thanks! > James > > --- If you wish > to unsubscribe from this mailing, send mai

Re: [castor-dev] 0.9.3.21 any object unmarshalling problem - givesAnyNode not object

2002-10-03 Thread James Richardson
James Richardson wrote: > If its any help, it appears to work fine in 0.9.3 ( which was the previous version I had ) Thanks! James --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of:

[castor-dev] 0.9.3.21 any object unmarshalling problem - gives AnyNode not object

2002-10-03 Thread James Richardson
Hi, Something seems to have changed recently in the handling of Any objects. Used to be I got an object back when unmarshalling, now I seem to get an AnyNode. I dont really know if this is a bug, or if I have to recursively unmarshal the anyobjects or something. In any case, I wondered if any

[castor-dev] New feature: UnmarshalListener

2002-10-03 Thread Arnaud Blandin
Hi castor fans, I would like to thank Paul Christmann for its willingness to participate to the Castor project and for having following our process when submitting code. Indeed Paul has written this new feature that we were talking about a while ago on that same list: having the possibility to li