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
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.
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
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
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
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
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;
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