接触式和四眼式原理的实现公司制度

发布于 2025-01-02 06:11:02 字数 1436 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

书间行客 2025-01-09 06:11:02

想法2更好。除了您需要对挂起的更改进行一些验证这一事实之外。因此,无论何时修改实体,您都需要首先进行验证。如果该实体存在一些挂起的更改,那么它现在将取决于最终用户来解决冲突,他可能会选择覆盖旧的挂起的更改。最终它只会覆盖以 XML 形式存储的挂起的更改。
或者您可能不会覆盖旧版本,并且可以有两个版本的挂起更改,然后将取决于业务用户来最终确定哪一个更好。因此在这种情况下,您可以以 XML 的形式获得挂起更改,例如:

 <pendingChanges entityID="12333">
     <propertyName1>
      <version1 value="val1"/>
      <version2 value="val2"/>
    </propertyName1>
    <propertyName2>
     <version1 value="val1"/>
     <version2 value="val2"/>
     <version2 value="val3"/>
    </propertyName2>
  </pendingChanges>

idea 2 is better. Except the fact that you need to make some validation for the pending changes.So where ever an entity is being modified you need to first validate.If there exists some pending changes for this entity then it will now depend on the end user to resolve the conflict and he might choose to overwrite the old pending changes.In the end it will just over writing the pending changes, which is stored in the form of XML.
Or you might not over write the old one and can have two version of pending changes and then it will depend on the business user to finalize which one is better.So in this case you can have the pending changes in the form of XML like :

 <pendingChanges entityID="12333">
     <propertyName1>
      <version1 value="val1"/>
      <version2 value="val2"/>
    </propertyName1>
    <propertyName2>
     <version1 value="val1"/>
     <version2 value="val2"/>
     <version2 value="val3"/>
    </propertyName2>
  </pendingChanges>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文