You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/10/06 19:57:26 UTC
UPGRADE pb with proxi and getCollectionByQuery
All,
I have this strange behaviours. When I call getCollectionByQuery I retrieve
a collection of proxy objects.
Now, I want to modify some attributes of these objects and after I lock with
the UPGRADE mode and commit.
No update is generated. The object is not make as dirty.
Why ??
When I use getObjectByQuery I don't have the trouble my object is well
updated!!!
Any helps would be appreciated, this is driving me nuts!
Tx !
Ps : I 'm using the :
ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheEmptyImpl
RE : UPGRADE pb with proxi and getCollectionByQuery
Posted by Emmanuel Dupont <em...@jwaretechnologies.com>.
Hi Armin !
In fact it seems that it is a driver error. We are using MSSQL server with
jtds driver.
I retrieve from db a proxy object; I set its attributes and lock with
UPGRADE (even WRITE) mode in order to make an update database. I commit but
nothing happens. No update is done!!!
I'm obliged to create a new jdo, set the attributes, lock with WRITE and
commit, if I want an update to be done. This is very weird because it seems
that sometimes the update is well done in the first case.
It's very strange.
Do you really recommend the j-netdirect driver ? Is this driver quicker and
most of all safer ?
Emmanuel.
-----Message d'origine-----
De : Armin Waibel [mailto:armin@code-au-lait.de]
Envoyé : mercredi 8 octobre 2003 02:16
À : OJB Users List
Objet : Re: UPGRADE pb with proxi and getCollectionByQuery
Hi Emmanuel,
can you post your test code, then
we are able to write a test case.
regards,
Armin
On Mon, 6 Oct 2003 19:57:26 +0200, Emmanuel Dupont
<em...@jwaretechnologies.com> wrote:
> All,
>
>
>
>
>
> I have this strange behaviours. When I call getCollectionByQuery I
> retrieve
> a collection of proxy objects.
>
>
>
> Now, I want to modify some attributes of these objects and after I lock
> with
> the UPGRADE mode and commit.
>
>
>
> No update is generated. The object is not make as dirty.
>
>
>
> Why ??
>
>
>
> When I use getObjectByQuery I don't have the trouble my object is well
> updated!!!
>
>
>
> Any helps would be appreciated, this is driving me nuts!
>
>
>
> Tx !
>
>
>
>
>
> Ps : I 'm using the :
> ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheEmptyImpl
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: UPGRADE pb with proxi and getCollectionByQuery
Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Emmanuel,
can you post your test code, then
we are able to write a test case.
regards,
Armin
On Mon, 6 Oct 2003 19:57:26 +0200, Emmanuel Dupont
<em...@jwaretechnologies.com> wrote:
> All,
>
>
>
>
>
> I have this strange behaviours. When I call getCollectionByQuery I
> retrieve
> a collection of proxy objects.
>
>
>
> Now, I want to modify some attributes of these objects and after I lock
> with
> the UPGRADE mode and commit.
>
>
>
> No update is generated. The object is not make as dirty.
>
>
>
> Why ??
>
>
>
> When I use getObjectByQuery I don't have the trouble my object is well
> updated!!!
>
>
>
> Any helps would be appreciated, this is driving me nuts!
>
>
>
> Tx !
>
>
>
>
>
> Ps : I 'm using the :
> ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheEmptyImpl
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org