[odb-users] Persisting objects after ID change

Erez Pics picserez at gmail.com
Thu Jan 1 03:57:37 EST 2015

Hi Boris,

Thanks, I will look into that :-)

Assuming, I am planning to use a generic query executer to perform
these updates,
I will pass the ODB object and it's old and new IDs and it will
execute a custom update query,
Is there a way to get from any ODB object it's table name and it's id field ?

Thank you very much for your help and support,

On Wed, Dec 31, 2014 at 7:39 PM, Boris Kolpackov
<boris at codesynthesis.com> wrote:
> Hi Erez,
> Erez Pics <picserez at gmail.com> writes:
>> Do you think that there is a problem with my update query and ODB
>> using the new object id after the change ?
> There is nothing wrong with executing a custom UPDATE statement. One
> advantage of my method, however, is that it uses prepared statements
> and therefore could be more efficient. Also, you will need to think
> about other ODB facilities that may mis-function (or need adjustment)
> after the id change. One that comes to mind off the top of my head
> is the object cache, if you are using it.
> Boris

More information about the odb-users mailing list