Hi Marc,
Yeah I missed this point (about loading of pojo), so what to do with dirty
record, I think we can do
following com.orientechnologies.orient.object.db.OObjectDatabaseTx#stream2pojo
just pass new empty pojo as second parameter.


On Mon, Jan 13, 2014 at 9:47 PM, Marc Haisenko <[email protected]> wrote:

> Hi Andrey,
> thanks for your answer, but there's some information I'm missing:
>
> Am Montag, 13. Januar 2014 16:10:30 UTC+1 schrieb Andrey Lomakin:
>
>> Hi Marc,
>> You should call 
>> com.orientechnologies.orient.core.db.ODatabaseComplex#getDatabaseOwner
>> to get ObjectDB instance after that you can fetch Pojo.
>>
>
> So I can call "myDatabase.getDatabaseOwner()", but then what? How do I
> fetch the POJO? If I'd do
> "myDatabase.getDatabaseOwner().load(oRecord.getIdentifier())", wouldn't I
> get the old version again?
>
>
>>
>> About dirty fields,  index tracker (which also is registered as a hook)
>> clears them so your hook should be first , use com.orientechnologies.
>> orient.core.hook.ORecordHook.HOOK_POSITION#FIRST as position value.
>>
>
> Alright, thanks.
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to