<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 閱讀(298) 評論(0)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 99人中文字幕亚洲区| 国产偷国产偷亚洲高清日韩| 亚洲激情中文字幕| 久久伊人免费视频| 亚洲国产香蕉碰碰人人| 30岁的女人韩剧免费观看| 亚洲系列国产精品制服丝袜第| 嫩草成人永久免费观看| 亚洲av福利无码无一区二区| 久操免费在线观看| 亚洲宅男永久在线| 成人免费午夜无码视频| 亚洲欧洲日韩极速播放 | 一级毛片在线免费观看| 亚洲av永久无码精品秋霞电影影院| 日韩精品无码免费专区午夜| 亚洲爆乳无码一区二区三区| 99国产精品视频免费观看| 亚洲人成在线精品| 日本免费一本天堂在线| 免费人成在线观看播放a| 亚洲国产精品国自产拍AV| 99久久99热精品免费观看国产| 亚洲一欧洲中文字幕在线| 好吊妞在线新免费视频| 色爽黄1000部免费软件下载| 亚洲精品午夜无码专区| 亚洲精品免费网站| 亚洲av永久无码| 国产综合亚洲专区在线| 美丽的姑娘免费观看在线播放| 中文字幕在线观看亚洲日韩| 免费a级毛片无码a∨性按摩| 男女午夜24式免费视频| 狠狠色伊人亚洲综合网站色| 亚洲男人天堂2020| aⅴ免费在线观看| 亚洲大片免费观看| 成人免费视频软件网站| 内射干少妇亚洲69XXX| 欧美最猛性xxxxx免费|