发布时间: 2013-11-11 14:02:17 作者: rapoo
hibernate JPA 中注解version的用法请使用过的人讲解一下,不要从jpa的注解帮助文档直接copy,那不是我需要的, [解决办法]有帮助文档还看不懂 要怎么帮你?[解决办法]
This annotation specifies the version field or property of an entity class that serves as its optimistic lock value. The version is used to ensure integrity when performing the merge operation and for optimistic concurrency control. Only a single Version property or field should be used per class; applications that use more than one Version property or field will not be portable. The Version property should be mapped to the primary table for the entity class; applications that map the Version property to a table other than the primary table will not be portable. The following types are supported for version properties: int, Integer, short, Short, long, Long, Timestamp. Example: @Version @Column(name="OPTLOCK") protected int getVersionNum() { return versionNum; } Since: Java Persistence 1.0
引用This annotation specifies the version field or property of an entity class that serves as its optimistic lock value. The version is used to ensure integrity when performing the merge operation and for optimistic concurrency control. Only a single Version property or field should be used per class; applications that use more than one Version property or field will not be portable. The Version property should be mapped to the primary table for the entity class; applications that map the Version property to a table other than the primary table will not be portable. The following types are supported for version properties: int, Integer, short, Short, long, Long, Timestamp. Example: @Version @Column(name="OPTLOCK") protected int getVersionNum() { return versionNum; } Since: Java Persistence 1.0哪看见省略号了。这不就是 hibernate乐观锁吗。
100分寻找:购物车中存在多个商品怎
用java怎么实现论坛的消息互发
tomcat7+myeclipse10 注释乱码,该如何
有关JAVA的几个不常见有关问题
lt;s:a href=quot;xxx.actionquot;gt;xxxlt;/s:agt; 跟
求用JSP写一个告假管理系统的大概方向
怎么判断 鼠标 悬浮对象 是否是滚动条
让人想死的中文编码有关问题
获取iframe里的id的值求教解决思路
svn使用解决方法