<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)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 无码人妻AV免费一区二区三区| 毛片亚洲AV无码精品国产午夜| 在线观看免费无码视频| 波多野结衣一区二区免费视频| 久久亚洲色WWW成人欧美| 精品无码国产污污污免费| 亚洲精品宾馆在线精品酒店| 成人免费网站在线观看| 亚洲乱码av中文一区二区| 免费看少妇作爱视频| 校园亚洲春色另类小说合集| 四虎国产精品免费久久影院| 国产偷国产偷亚洲高清在线| 四虎影院永久免费观看| 女人裸身j部免费视频无遮挡| 亚洲美女在线国产| 中文毛片无遮挡高清免费| 亚洲AV无码一区二区二三区入口 | 男女啪啪免费体验区| 2048亚洲精品国产| 免费av一区二区三区| 亚洲第一永久在线观看| 在线免费观看污网站| 一级做a爰片久久毛片免费陪| 亚洲另类激情综合偷自拍图| 6080午夜一级毛片免费看6080夜福利| 亚洲欧洲日产v特级毛片| 国产女高清在线看免费观看 | 日韩亚洲不卡在线视频中文字幕在线观看| 四虎成人免费观看在线网址| 久久人午夜亚洲精品无码区 | 久久精品国产亚洲AV不卡| 久久久久久成人毛片免费看| 亚洲中文无码mv| 精品国产香蕉伊思人在线在线亚洲一区二区 | 亚洲精品电影在线| 国产片免费福利片永久| 国产自国产自愉自愉免费24区 | 一个人免费播放在线视频看片| 亚洲av无码一区二区三区不卡| 免费精品人在线二线三线区别|