Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How unique are id's?
Liferay generates ids for objects it manages, so for example a file entry might have a numeric id of 10801. My question is this:
--> Are these integers unique? <--
For example, would it be possible for me to have a file entry with id 10801 and a calendar entry with the same number of 10801? This will have some important design ramifications for a system I am writing so I need to know. I cannot find this spelled out anywhere in the documentation.
Thanks!
-- j
--> Are these integers unique? <--
For example, would it be possible for me to have a file entry with id 10801 and a calendar entry with the same number of 10801? This will have some important design ramifications for a system I am writing so I need to know. I cannot find this spelled out anywhere in the documentation.
Thanks!
-- j
Hi Jeff,
They are unique for most entities, including the ones you mentioned. Take a look at the values of the Counter table for details.
They are unique for most entities, including the ones you mentioned. Take a look at the values of the Counter table for details.