Hi OrientDB experts,

We are looking into OrientDB as our persistency solution behind a restful 
web service, because a GraphDB would be a perfect match for our use case. 
One of the things we have noticed is that entities (both Vertex and Edges) 
are uniquely identified by a ORecordId, containing the 
'#${clusterId}:${clusterPosition}'. In a restful API, based on my personal 
experience from relational DB's,  you typically have several solutions to 
identify entities uniquely, for example:

 - UUID's, generated in code and persisted on DB level
 - Long/Int values, generated on DB level incrementally
 - etc...

The problem is that the format "#${clusterId}:${clusterPosition}" is not 
really URL/REST friendly (example: 
.../api/user/[#${clusterId}:${clusterPosition}]/address). Do you have any 
advice/experience on how you would deal with this, keeping in mind that you 
need a bi-directional mapping between the ORecordId and the 
"RestFulFriendlyId"?

Any hints and best practices based on experience would be truly 
appreciated....

Best regards,

Bart

PS: Question also posted on StackOverlfow: 
https://stackoverflow.com/questions/37424385/best-practice-to-map-orientdb-orecordid-onto-restfull-friendly-id-representation

-- 

--- 
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.

Reply via email to