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


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


    網站導航:
     
    主站蜘蛛池模板: 人妻在线日韩免费视频| 亚洲va精品中文字幕| 美女被免费视频网站| 男女交性永久免费视频播放 | 浮力影院第一页小视频国产在线观看免费| 91亚洲国产成人久久精品网站| 久久这里只精品99re免费| 亚洲av一综合av一区| 国产精成人品日日拍夜夜免费| 亚洲av无码不卡一区二区三区| 久久久久久影院久久久久免费精品国产小说| 亚洲日韩精品射精日| 国产精品免费AV片在线观看| 亚洲成a人片在线网站| 日本妇人成熟免费中文字幕 | 亚洲人成无码网站| 久久久精品午夜免费不卡| 亚洲黄色三级视频| 成年美女黄网站色大免费视频| 亚洲精品V天堂中文字幕| 免费在线精品视频| 精品国产免费一区二区三区香蕉| 亚洲精品中文字幕麻豆| 成人免费视频小说| CAOPORM国产精品视频免费| 亚洲AV午夜福利精品一区二区 | 国产美女精品视频免费观看 | 国产精品酒店视频免费看| 九九全国免费视频| 日韩精品一区二区亚洲AV观看| 一个人免费高清在线观看| 粉色视频成年免费人15次| 国产精品久久久亚洲| 无码人妻一区二区三区免费| 国产亚洲福利一区二区免费看| 亚洲色婷婷综合开心网| 91精品国产免费久久国语麻豆| 亚洲成AV人片高潮喷水| 国产A在亚洲线播放| 大学生一级毛片免费看| 一级毛片免费播放男男|