[odb-users] How to use 'session' to check if an object is already persisted?

Justin Huang yohuang at nvidia.com
Mon Oct 14 23:27:52 EDT 2019


I read through https://codesynthesis.com/products/odb/doc/manual.xhtml#11.2 but do not know how we can test if an object is persisted already in the session cache.

Is there any example code on this?

Should I persist the object and then load it back using its 'id' and test if the returned pointer is NULL?


This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

More information about the odb-users mailing list