mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-02 16:22:27 +00:00
Added support of setting entity concurrency mode via annotation
This commit is contained in:
1 parent
526aab97b8
commit
fe4bd22c15
1 file changed
+5
@@ -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