<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    lqxue

    常用鏈接

    統計

    book

    tools

    最新評論

    hibernate version

    3.4.2 Version Attributes
    The Version field or property is used by the persistence provider to perform optimistic locking. It is
    accessed and/or set by the persistence provider in the course of performing lifecycle operations on the
    entity instance. An entity is automatically enabled for optimistic locking if it has a property or field
    mapped with a Version mapping.

    An entity may access the state of its version field or property or export a method for use by the application
    to access the version, but must not modify the version value[17]. Only the persistence provider is
    permitted to set or update the value of the version attribute in the object.

    The version attribute is updated by the persistence provider runtime when the object is written to the
    database. All non-relationship fields and properties and all relationships owned by the entity are
    included in version checks.

    The persistence provider's implementation of the merge operation must examine the version attribute
    when an entity is being merged and throw an OptimisticLockException if it is discovered that
    the object being merged is a stale copy of the entity—i.e. that the entity has been updated since the
    entity became detached. Depending on the implementation strategy used, it is possible that this exception
    may not be thrown until flush is called or commit time, whichever happens first.

    The persistence provider runtime is only required to use the version attribute when performing optimistic
    lock checking. Persistence provider implementations may provide additional mechanisms beside
    version attributes to enable optimistic lock checking. However, support for such mechanisms is not
    required of an implementation of this specification.[18]

    If only some entities contain version attributes, the persistence provider runtime is required to check
    those entities for which version attributes have been specified. The consistency of the object graph is not
    guaranteed, but the absence of version attributes on some of the entities will not stop operations from
    completing.

    posted on 2007-05-14 14:17 lqx 閱讀(292) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 91在线视频免费看| 免费无遮挡无码永久视频| 在线观看免费大黄网站| 亚洲人成电影青青在线播放| 91制片厂制作传媒免费版樱花| 亚洲天堂男人天堂| 天天影院成人免费观看| 亚洲中文字幕一二三四区苍井空 | 在线观看的免费网站无遮挡| 亚洲好看的理论片电影| 久久精品国产免费观看| 亚洲无吗在线视频| 国产精品成人无码免费| 国产亚洲精品免费| 亚洲日韩精品射精日| 4虎1515hh永久免费| 亚洲精品福利你懂| 国产成人免费福利网站| 国产精品小视频免费无限app| 亚洲av无码成h人动漫无遮挡 | 一区二区视频在线免费观看| 亚洲日韩精品无码一区二区三区 | 亚洲人成色77777在线观看大| 国产在线观看无码免费视频| 亚洲色图黄色小说| 免费黄色小视频网站| eeuss影院免费直达入口| 久久亚洲春色中文字幕久久久| 最近中文字幕无吗高清免费视频| 免费人成又黄又爽的视频在线电影| 久久久久久久综合日本亚洲| 在线观看免费人成视频色| 免费激情网站国产高清第一页| 亚洲AV人无码激艳猛片| 中国精品一级毛片免费播放| 精品亚洲成AV人在线观看| 免费无码又爽又刺激高潮| 伊人免费在线观看| 亚洲gv猛男gv无码男同短文| 国产成人A在线观看视频免费 | 亚洲乱色熟女一区二区三区丝袜 |