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


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


    網站導航:
     
    主站蜘蛛池模板: 青青青国产在线观看免费网站| 亚洲区小说区图片区QVOD| 国产精品美女自在线观看免费| 国产精品冒白浆免费视频| 亚洲色婷婷综合开心网| 亚洲精品电影天堂网| 久久精品国产亚洲AV| 日本免费污片中国特一级| 好男人视频社区精品免费| 欧洲亚洲国产清在高| 亚洲中文字幕久久精品无码VA| 久久精品无码专区免费| 免费在线观看的网站| 一本久久a久久精品亚洲| 亚洲精品国产日韩| 人人玩人人添人人澡免费| 免费欧洲毛片A级视频无风险| 亚洲网站在线播放| 国产97视频人人做人人爱免费| 国产大片线上免费观看| 亚洲精品无码乱码成人 | 成年女人免费视频播放77777| 亚洲偷自拍拍综合网| 亚洲中文无码亚洲人成影院| 国产免费爽爽视频在线观看| 免费一级特黄特色大片在线观看| 91亚洲一区二区在线观看不卡| 特级做a爰片毛片免费看| 久久久久亚洲av无码专区| 黄色毛片免费观看| 最近免费中文字幕4| 亚洲综合亚洲国产尤物| 91免费国产视频| 国产成人精品日本亚洲专区 | 在线免费播放一级毛片| 国产精品无码素人福利免费| 亚洲jjzzjjzz在线播放| 最近中文字幕免费2019| 人人狠狠综合久久亚洲88| 怡红院免费全部视频在线视频| 亚洲 无码 在线 专区|