Hi all,

Is it a good practice to use the OID value (anInteger) as an
"external" identifier of your domain object?

Let's suppose I have a collection of "People", as I save them in the
collection, it will automatically create OIDs for them.

But let's suppose I want to map that person to a RESTful URI, would it
be "legal" to use its OID as part of the URI?

E.g. mydomain.com/people/123456790
where 123456790 is the OID value.

I like OID/UUIDs, and I don't want to duplicate that logic in my app.

Regards,

Esteban A. Maringolo

Reply via email to