Re: OJB 1.0 r3:Tutorial 1 : PersistentFieldClass andPersistentFieldDefaultImpl bug/Issue

2003-07-08 Thread cmarcourt
Here it's a java thing. When you initialize your Object Test() its int fields will be instantiated with their default value, in your code 0. If you want to retrieve your record with id 2, I suggest you use a Criteria.addEqualTo() method. Criteria criteria = new Criteria(); criteria.addEqualTo("id

Re: RE: Borrow broker from pool failed

2003-07-04 Thread cmarcourt
I think I found the problem. I made a mistake when I post my jdbc connection configuration. When this error occurs, there was no autoReconnect=true in the dbalias attribute. Now that I set again this parameter in the dbalias, there is no problem. The connection between MySQL and OJB is correct.

Re: Am I missing something for the update

2003-06-26 Thread cmarcourt
I found my mistake. I forgot to set the Id to force an update of the object. Christophe > Message du 26/06/03 10:49 > De : cmarcourt <[EMAIL PROTECTED]> > A : [EMAIL PROTECTED] > Copie à : > Objet : Am I missing something for the update > Hi, > > update works pe

Am I missing something for the update

2003-06-26 Thread cmarcourt
Hi, update works perfectly well in my application for small modification, says only one setter. Now I've got a big big form (it's an eight step form). I stored its values in a session during all the time. I trace the value for a specific field, this value is right to the end. But when I call the

Proxy

2003-06-24 Thread cmarcourt
Are you sure proxy is working ??? I'm working with OJB 1.0 rc3. I've got all my simple collections. Not arrays, not manageable collections only Vectors. Everytime I turned on the proxy in my repository.xml, always the same Exception : [org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDe

Proxy

2003-06-24 Thread cmarcourt
Are you sure proxy is working ??? I'm working with OJB 1.0 rc3. I've got all my simple collections. Not arrays, not manageable collections only Vectors. Everytime I turned on the proxy in my repository.xml, always the same Exception : [org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDe

Proxy Collection

2003-06-24 Thread cmarcourt
Hi, I'm sure I read this in a tutorial of OJB but I can't find it anymore. Can I use : in my repository.xml and my java class use Arrays ? example : repository.xml : ... ... java source : public class Customer() { ... private House[] ownedHouses;

FieldConversion and Cache

2003-06-19 Thread cmarcourt
Hello, I wrote my own FieldConversion objects which implements FieldConversion interface. It works well the first time, but as soon as I do an insert or an update the conversion is not working again. here is one of my FieldConversion object : public class CustomerPrefix2IntegerFieldConversion i