You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A {
...
@OneToMany
List<B> b;
@LastModifiedDate
private LocalDateTime lastModifiedDate;
}
class B {
...
@ManyToOne
A a;
}
This fails because the auditing field lastModifiedDate, gets updated (I think) and the save method fails. removing the auditing field works fine. org.springframework.data.mapping.MappingException: Cannot lookup property @io.github.kaiso.relmongo.annotation.ManyToOne(mappedBy=gists, fetch=LAZY)private com.timecloud.source.entity.pojo.ClassA com.timecloud.gist.entity.ClassB.source on null intermediate! Original path was: source.lastModifiedDate on com.timecloud.gist.entity.ClassB.
The text was updated successfully, but these errors were encountered:
Sorry I will close this issue, I'm able to use auditing annotations without any problem, please take a look at relmongo tests to see an example on that.
I have manyToOne and oneToMany relationship like
This fails because the auditing field lastModifiedDate, gets updated (I think) and the save method fails. removing the auditing field works fine.
org.springframework.data.mapping.MappingException: Cannot lookup property @io.github.kaiso.relmongo.annotation.ManyToOne(mappedBy=gists, fetch=LAZY)private com.timecloud.source.entity.pojo.ClassA com.timecloud.gist.entity.ClassB.source on null intermediate! Original path was: source.lastModifiedDate on com.timecloud.gist.entity.ClassB.
The text was updated successfully, but these errors were encountered: