mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1625 - Populate UUID via database column default value / impossible to disable automatic generation for @Id fields of type UUID.
This commit is contained in:
@@ -68,7 +68,7 @@ public abstract class AnnotationParser extends AnnotationBase {
|
||||
} else {
|
||||
prop.setId();
|
||||
if (prop.getPropertyType().equals(UUID.class)) {
|
||||
if (descriptor.getIdGeneratorName() == null) {
|
||||
if (readConfig.isIdGeneratorAutomatic() && descriptor.getIdGeneratorName() == null) {
|
||||
descriptor.setUuidGenerator();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user