try{ db.begin(TXTYPE.OPTIMISTIC); ODocument saved = db.save(document); db.commit(); return saved; } catch( Exception e ){ db.rollback(); } finally{ db.close(); }Is there a way to store in "saved" the permanent ID instead of the temporary one before the return statement? A query for that permanent ID would be one way but I would really prefer to avoid having to do that kind of "tricks".
--
---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/slAw072CzvE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "OrientDB" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/orient-database/slAw072CzvE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to