摘要:
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "location_id") private LocationDto location; public class LocationDto { @Id @GeneratedValue(str 阅读全文
摘要:
UserDao @Repository public class UserDao { @PersistenceContext private EntityManager entityManager; public User get(Long id) { String hql = "select u 阅读全文