Skip to content

Commit

Permalink
fix[orm]: mongodb only supports byte[]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Oct 30, 2023
1 parent e0de214 commit 6f33e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orm/src/main/java/com/zfoo/orm/manager/OrmManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ private void checkEntity(Class<?> clazz) {
} else if (fieldType.isArray()) {
// 是一个数组
Class<?> arrayClazz = fieldType.getComponentType();
checkSubEntity(clazz, arrayClazz);
AssertionUtils.isTrue(arrayClazz == byte.class, "ORM[class:{}]的数组类型只支持byte[]", clazz.getCanonicalName());
} else if (Set.class.isAssignableFrom(fieldType)) {
AssertionUtils.isTrue(fieldType.equals(Set.class), "ORM[class:{}]类型声明不正确,必须是Set接口类型", clazz.getCanonicalName());

Expand Down

0 comments on commit 6f33e8b

Please sign in to comment.