mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 18:17:02 +00:00
fix[orm]: bson对象数组无法序列化
This commit is contained in:
1 parent
606e45838c
commit
844b9cf6d2
1 file changed
+2
-2
@@ -335,8 +335,8 @@ public class OrmManager implements IOrmManager {
|
||||
|
||||
if (indexAnnotation.ttlExpireAfterSeconds() > 0) {
|
||||
var fieldType = field.getGenericType();
|
||||
if (!(fieldType == Date.class || fieldType == Date[].class || field.getGenericType().toString().equals("java.util.List<java.util.Date>"))) {
|
||||
throw new IllegalArgumentException(StringUtils.format("MongoDB规定TTL类型[{}]必须是Date,Date[],List<Date>的其中一种类型", field.getName()));
|
||||
if (!(fieldType == Date.class || field.getGenericType().toString().equals("java.util.List<java.util.Date>"))) {
|
||||
throw new IllegalArgumentException(StringUtils.format("MongoDB规定TTL类型[{}]必须是Date,List<Date>的其中一种类型", field.getName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user