Currently, Jopa offers auto-generation for entity identifiers.
The generated identifier is created from the entity type URI and a random number.
As a user, I would like to have an option to implement my own identifier generator.
The generator should be able to check for the uniqueness of the identifier and should be aware of the entity type and, ideally, the entity object itself.
Example: I have a user entity with a unique username, and I would like to have an ID generator that creates a URI identifier using the username.
Currently, Jopa offers auto-generation for entity identifiers.
The generated identifier is created from the entity type URI and a random number.
As a user, I would like to have an option to implement my own identifier generator.
The generator should be able to check for the uniqueness of the identifier and should be aware of the entity type and, ideally, the entity object itself.
Example: I have a user entity with a unique username, and I would like to have an ID generator that creates a URI identifier using the username.