`
龙游天下
  • 浏览: 5127 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
id为主键并且还是自动增长得;我用的是mysql数据库  User user = this.userService.getUser(id); UserHonest honest = new UserHonest(); honest.setId(5); honest.setHonest(5); honest.setType("REG"); honest.setUser(user); this.userHonestService.addUserHonest(honest); 为什么我每次都要还手动设置主键的值  否则就要抱错误 “ids for this cl ...
能用一句话给大致概括下吗?
我在jpa更新一个对象以后,在点击分页,它报了一个 org.springframework.orm.jpa.JpaSystemException: org.hibernate.HibernateException: More than one row with the given identifier was found: 917509, for class: com.easyjf.ec.domain.BillProcess; nested exception is javax.persistence.PersistenceException: org.hibernate.HibernateEx ...
public static void main(String[] args) { // 创建Session对象 Properties p = new Properties(); p.put("mail.transport.protocol","smtp"); p.put("mail.smtp.host","www.163.com"); p.put("mail.smtp.auth","true"); p.put("mail.smtp.por ...
Global site tag (gtag.js) - Google Analytics