|EclipseLink and MongoDB - Auto incrementing field [message #1063780]
||Fri, 14 June 2013 04:21
| Michael Hunziker
Registered: June 2013
We're using Eclipse Link 2.4 with MongoDB.
Due to a business requirement we need to be able to generate an auto incrementing sequence (as documented here: docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field)
Has anyone ever had to do this? The problem is that the ObjectID's are not really human readable. E.g. in URLs: htt...://bookStore.com/books/51BAB665040EE9317CAD525A.
Our customer would like to be able to use an ID like 1234 to identify a book...
What do you think about this?
Is there a possibility to implement the solution proposed by MongoDB above with EclipseLink/NOSQL? Currently I don't see how I could call the mongodb-function "getNextSequence"...
Thank you for your help!
Powered by FUDForum
. Page generated in 0.08693 seconds