mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor/findannotation (#1104)
* refactor: renamed findAnnotation method that searches recursive to findAnnotationRecursive * CHG: searching namedQueries & indices also recursive in superclasses * FIX: Using the AnnotationBase methods on several places and documented them
This commit is contained in:
committed by
Rob Bygrave
parent
e908d16ba8
commit
46cdc84e6b
@@ -15,7 +15,7 @@ public class AnnotationSql extends AnnotationParser {
|
||||
@Override
|
||||
public void parse() {
|
||||
Class<?> cls = descriptor.getBeanType();
|
||||
Sql sql = AnnotationBase.findAnnotation(cls, Sql.class);
|
||||
Sql sql = AnnotationBase.findAnnotationRecursive(cls, Sql.class);
|
||||
if (sql != null) {
|
||||
descriptor.setEntityType(BeanDescriptor.EntityType.SQL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user