# How to use UUID as persistenceId?

**URL:** <https://community.ofelia.com/t/how-to-use-uuid-as-persistenceid/9959>\
**Category:** Q&A\
**Created:** [19 January 2020 18:24 UTC](https://community.ofelia.com/t/how-to-use-uuid-as-persistenceid/9959 "2020-01-19T18:24:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreaziz\_1420518](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andreaziz\_1420518](https://community.ofelia.com/u/andreaziz_1420518)\
**Post date:** [19 January 2020 18:24 UTC](https://community.ofelia.com/t/how-to-use-uuid-as-persistenceid/9959/1 "2020-01-19T18:24:48Z")

</div>

Hi,

Is it possible to use UUID as database persistenceId? If not, is it possible to hide persistenceId on Rest API results?

thanks,

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [10 February 2020 18:07 UTC](https://community.ofelia.com/t/how-to-use-uuid-as-persistenceid/9959/2 "2020-02-10T18:07:15Z")

</div>

Hello Andrea,

Which Bonita Version do you use? UUID is a Bonita V5 terminology.

\* If you use Bonita V5, yes the UUID&nbsp;is a unique number in the system.

If you use Bonita V6/V7, what is for you the UUID? Do you speak about a Business Data Model or about a Bonita Engine (then a caseID?)

\* if you want to describe a BDM, the persistenceId (a Long value) is unique per Business Object (for an Object Employee, persistenceId=5 is a unique object)

\* if this is for an object in the Bonita Engine (a case, a process, a user), the ID is unique too. UserId = 4 is unique.

Hope this help,

&nbsp;
