We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94fa452 + 113e9a8 commit d1f4ab8Copy full SHA for d1f4ab8
jpa/src/main/java/io/mybatis/provider/jpa/JpaEntityClassFinder.java
@@ -30,7 +30,7 @@ public class JpaEntityClassFinder extends GenericEntityClassFinder {
30
@Override
31
public boolean isEntityClass(Class<?> clazz) {
32
//带注解或不是简单类型和枚举的都算实体
33
- return clazz.isAnnotationPresent(Table.class) || (!SimpleTypeUtil.isSimpleType(clazz) && !clazz.isEnum());
+ return clazz.isAnnotationPresent(Table.class) || (!clazz.isPrimitive() && !SimpleTypeUtil.isSimpleType(clazz) && !clazz.isEnum());
34
}
35
36
0 commit comments