Allow update created field if indicated on Cols #1513

Merged
lunny merged 1 commits from lunny/update_created into master 2020-01-20 08:23:57 +00:00

View File

@ -247,7 +247,7 @@ func (statement *Statement) buildUpdates(bean interface{},
if !includeVersion && col.IsVersion {
continue
}
if col.IsCreated {
if col.IsCreated && !columnMap.contain(col.Name) {
continue
}
if !includeUpdated && col.IsUpdated {