摘要:
一、Persistence Persistence 类用于获取 EntityManagerFactory 实例,该类包含一个 createEntityManagerFactory 的静态方法 。createEntityManagerFactory 方法有两个重载。 二、EntityManagerFa 阅读全文
posted @ 2019-02-02 16:39
江湖小小白
阅读(185)
评论(0)
推荐(0)
摘要:
注解放在类属性上不生效时可放在get方法上试试,原因未知 @Entity /** * @Entity 该Java类为实体类,将映射到数据库表。如声明一个实体类 Customer,它将映射到数据库中的 customer 表上。 */ @Entity public class Customer { @T 阅读全文
posted @ 2019-02-02 11:53
江湖小小白
阅读(423)
评论(0)
推荐(0)
摘要:
https://docs.jboss.org/hibernate/orm/current/introduction/html_single/Hibernate_Introduction.html#hello-jpa POM 依赖:https://mvnrepository.com/artifact/ 阅读全文
posted @ 2019-02-02 10:24
江湖小小白
阅读(568)
评论(0)
推荐(0)

浙公网安备 33010602011771号