GH-490 - Use Types constant to decide if a type is an entity.

This commit is contained in:
josroseboom
2024-02-07 10:20:24 +01:00
committed by Oliver Drotbohm
parent a142618394
commit e1e9b237c8

View File

@@ -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) {