GH-490 - Use Types constant to decide if a type is an entity.
This commit is contained in:
committed by
Oliver Drotbohm
parent
a142618394
commit
e1e9b237c8
@@ -121,7 +121,7 @@ public enum DependencyType {
|
||||
}
|
||||
|
||||
static DependencyType forParameter(JavaClass type) {
|
||||
return type.isAnnotatedWith("javax.persistence.Entity") ? ENTITY : DEFAULT;
|
||||
return type.isAnnotatedWith(Types.JavaXTypes.AT_ENTITY) ? ENTITY : DEFAULT;
|
||||
}
|
||||
|
||||
static DependencyType forCodeUnit(JavaCodeUnit codeUnit) {
|
||||
|
||||
Reference in New Issue
Block a user