ODocument.getIdentity() is returning temporary rid.

47 views
Skip to first unread message

Chaitanya Reddy

unread,
Jul 30, 2015, 1:52:37 PM7/30/15
to OrientDB
Hi OrientDB users

I am new to OrientDB, I am liking it. I have used a select query on a users table with a subset of user columns. I want to get the rid of the document. So I used ODocument.getIdentity(). But it is giving negative rid (which is temporary as for my understanding).

Thanks in advance.

Regards
Chaitanya

Chaitanya

unread,
Jul 31, 2015, 12:28:28 AM7/31/15
to OrientDB
Anyone to help.

--

---
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 orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

xvik

unread,
Jul 31, 2015, 4:48:39 AM7/31/15
to OrientDB, chaita...@gmail.com
http://orientdb.com/docs/last/orientdb.wiki/SQL-Query.html#projections

"With all projections except the wildcard "*", a new temporary document is created and the @rid and@version of the original record will not be included."

пятница, 31 июля 2015 г., 10:28:28 UTC+6 пользователь Chaitanya Reddy написал:
Reply all
Reply to author
Forward
0 new messages