protected override void PreUpdateBean(Object bean) { IIdentifierGenerator generator = BeanMetaData.IdentifierGenerator; if (generator.IsSelfGenerate) { generator.SetIdentifier(bean, DataSource); } }
protected override void PostUpdateBean(Object bean, int ret) { IIdentifierGenerator generator = BeanMetaData.IdentifierGenerator; if (!generator.IsSelfGenerate) { generator.SetIdentifier(bean, DataSource); } UpdateVersionNoIfNeed(bean); UpdateTimestampIfNeed(bean); }