teammates
teammates copied to clipboard
Use @GenerateValue to automatically generate Id of Entities instead of UUID.randomUUID()
Environment: v9-migration
Description of feature/enhancement Use @GeneratedValue for entities instead of using UUID.randomUUID() for sql entities.
For example,
we should add a @GeneratedValue for the @Id field.
Justification
While there is a low chance of collision using UUID.randomUUID(), there is still a small chance of failure if the random UUID generated in teammates/src/main/java/teammates/sqllogic/core/DataBundleLogic.java
persistDataBundle
method.
Instead, a better practice might be to use @GeneratedValue annotation to generate a safe UUID for the respective entities such as Section
, Student
etc.
This would prevent a collision bug from ever occurring.
is these issue still persist , can i work on it ?
hi @ArunErram, this issue deals with our v9-migration, which is for committers only to contribute to
is these issue still persist , can i work on it ?
hi @ArunErram, we will try to release some new issues regularly, please have a look of some of the other open issues posted!
Hello @cedricongjh, can I work on this issue?