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
need to figure out whats going on and get this square away in this plugin
in AuditTrailHelper.initializeFields is calls isNewEntity
[8:50]
isNewEntity checks to see if its in the session. session.persistenceContext.getEntry(entity)
[8:50]
thats where the problem is
we can first check if it has a version and if its null then its new otherwise it exists
[9:28]
if there is no version then we have to rely on what is there and check the session with the assumption that its been attached
we could also just check the createdDate field and assume that if thats not null then its been initialized. it important to remeber that initializeFields is there mostly to help validation. AuditTrailInterceptor does it to when hibbernate saves it
The text was updated successfully, but these errors were encountered:
see https://github.com/9ci/rcm/issues/3698
and fixed it by calling .attach() here
https://github.com/9ci/autocash/commit/4def15eb5de56fc6bf277cbce390f5c32d16732d
need to figure out whats going on and get this square away in this plugin
in AuditTrailHelper.initializeFields is calls isNewEntity
[8:50]
isNewEntity checks to see if its in the session. session.persistenceContext.getEntry(entity)
[8:50]
thats where the problem is
we can first check if it has a version and if its null then its new otherwise it exists
[9:28]
if there is no version then we have to rely on what is there and check the session with the assumption that its been attached
[9:28]
@snimavat make sense?
we could also just check the createdDate field and assume that if thats not null then its been initialized. it important to remeber that initializeFields is there mostly to help validation. AuditTrailInterceptor does it to when hibbernate saves it
The text was updated successfully, but these errors were encountered: