添加员工时不能添加部门的id
上面这样写在保存时不能添加部门的id
上面这样写在保存时不能添加部门的id
2017-02-18
问题解决了吗?rg.springframework.dao.DataIntegrityViolationException: could not insert: [com.muke.employee.domain.Employee]; SQL [insert into employee (ename, sex, birthday, joinDay, eno, username, password, dno) values (?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [com.muke.employee.domain.Employee]
举报