You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Antonio Gallardo <ag...@agssa.net> on 2005/01/13 03:01:15 UTC

Re: SECUENCE of PostgreSQL increment value if use QueryByIdentityandgetObjectByQuery

On Mie, 12 de Enero de 2005, 19:05, Armin Waibel dijo:
>
> Have a look at PersistenceBrokerImpl line 1527.
>
> I attached a fix that should work (not tested).
>
> The main problem was Identity class. This class obtain new id's and set
> the PK values in the persistent object (if PK fields are null). In my
> opinion this should not happen (bad design), but to change this will be
> costly.

Hi:

I am back. Thanks for the patch. I will try this now.

BTW, we also found if a PK is using sequences then the return value is
always null. The only problem is that is touching sequences.

Is posible to use a diferent identity class? Maybe this can fix the
problem. Anyway, I wil try the patch first and let you know the results.
;-)

Best Regards,

Antonio Gallardo


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org