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)
我不明白,如果有人有一個想法,引用文件我感興趣
感謝, 澤維爾