4
我有一个春天@Document object Profile
如何引用GridFSFile与@DbRef注释(春季数据的MongoDB)
我想引用GridFSFile喜欢它:
@DbRef
private GridFSFile file;
文件被writen到另一个集合键入GridFS。
我一直有一个java.lang.StackOverflowError
当我设置profile.setFile(file);
java.lang.StackOverflowError
at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
at org.springframework.data.util.TypeDiscoverer.hashCode(TypeDiscoverer.java:365)
at org.springframework.data.util.ClassTypeInformation.hashCode(ClassTypeInformation.java:39)
at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79)
at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
我不明白,如果有人有一个想法,引用文件我感兴趣
感谢, 泽维尔