SpringBoot集成JPA

JPA 註解的幾個要點  1.設置Pojo爲實體 @Entity //標識這個pojo是一個jpa實體 public class Users implements Serializable{ }  2.設置表名@[email protected](name=users)//指表名爲users public class Users implements Serializable{ }  3.設置主鍵
相關文章
相關標籤/搜索