【JPA】映射
转载:https://www.cnblogs.com/yangchongxing/p/10120447.html
1、@Entity注解
指定实体类
2、@Id注解
指定实体主键
3、@Table注解
指定表名,@Table(name="employee")
指定架构,@Table(name="employee", schema="HR")
指定目录,@Table(name="employee", catalog="HR")
原文:https://www.cnblogs.com/yangchongxing/p/10120447.html