mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Added support of setting entity concurrency mode via annotation
This commit is contained in:
@@ -147,6 +147,11 @@ public class AnnotationClass extends AnnotationParser {
|
||||
if (cacheStrategy != null){
|
||||
readCacheStrategy(cacheStrategy);
|
||||
}
|
||||
|
||||
EntityConcurrencyMode entityConcurrencyMode = cls.getAnnotation(EntityConcurrencyMode.class);
|
||||
if (entityConcurrencyMode!=null) {
|
||||
descriptor.setConcurrencyMode(entityConcurrencyMode.value());
|
||||
}
|
||||
}
|
||||
|
||||
private void readCacheStrategy(CacheStrategy cacheStrategy){
|
||||
|
||||
Reference in New Issue
Block a user