Skip to content

Commit e1e9b23

Browse files
JosRoseboomodrotbohm
authored andcommitted
GH-490 - Use Types constant to decide if a type is an entity.
1 parent a142618 commit e1e9b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-modulith-core/src/main/java/org/springframework/modulith/core/DependencyType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ DependencyType defaultOr(Supplier<DependencyType> supplier) {
121121
}
122122

123123
static DependencyType forParameter(JavaClass type) {
124-
return type.isAnnotatedWith("javax.persistence.Entity") ? ENTITY : DEFAULT;
124+
return type.isAnnotatedWith(Types.JavaXTypes.AT_ENTITY) ? ENTITY : DEFAULT;
125125
}
126126

127127
static DependencyType forCodeUnit(JavaCodeUnit codeUnit) {

0 commit comments

Comments
 (0)