JPA 批注参考
JPA 批注参考:http://www.oracle.com/technology/global/cn/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html#SequenceGenerator
常用的JPA标记
Table
Table用来定义entity主表的name,catalog,schema等属性。
元数据属性说明:
[*]name: 表名
[*]catalog: 对应关系数据库中的catalog
[*]schema:对应关系数据库中的schema
[*]UniqueConstraints:定义一个UniqueConstraint数组,指定需要建唯一约束的列
<div class="source"> @Entity @Table(name="CUST") public class Customer { ... }
页:
[1]