摘要: @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "location_id") private LocationDto location; public class LocationDto { @Id @GeneratedValue(str 阅读全文
posted @ 2018-04-20 21:35 車輪の唄 阅读(8) 评论(0) 推荐(0) 编辑
摘要: UserDao @Repository public class UserDao { @PersistenceContext private EntityManager entityManager; public User get(Long id) { String hql = "select u 阅读全文
posted @ 2018-04-20 09:17 車輪の唄 阅读(17) 评论(0) 推荐(0) 编辑