From: https://github.com/orientechnologies/orientdb/wiki/Object-Database
ODocument doc = db.getRecordByUserObject( animal ); ORID rid = doc.getIdentity(); On 28/05/14 19:25, costin popa wrote: > I have an id property that is annotated with @Id annotation. > > When I load the object from the DB, for the other field, the getters > are intercepted by the proxy and values from the wrapped document are > returned, which is fine. > What about my getter for the Id property? That method is not proxied > and I just get null. > > So the question is, how do I get the record id from a proxy object? > -- > > --- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- --- 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/d/optout.
