Range value for ID

Hi cuba-community,

I have a question.
I would like to have an ID for an entity with a range…means the ID number shall start from 2000 and if entity are created, they shall get the “next” number like 2001, but it shall only go until 2999…

does anybody have an idea how to implement it?

Thanks

Hi,

You can create an entity with Integer identifier (extended from BaseIntegerIdEntity) and explicitly set it’s id after creation.

1 Like

Hi,

What is the process to do this? Can you explain it in detail?