Good afternoon guys.
I'm giving maintenance to a system that another developer started, before he was using hibernate and then migrated to eclipselink.
When I was using hibernate it was working normal, and when it migrated it started to fail delete.
The Controller looks like this.
@RequestMapping(value = {deletePath}, method = RequestMethod.POST)
public String delete(@PathVariable("id") String id, Division division) {
divisionService.delete(division);
return "redirect:"+defaultPath;
}
stackoverflow
Error: org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: org.postgresql.util.PSQLException: ERROR : null value in column "name" violates not-null constraint Detail: Failing row contains (d1ba96c6-baac-4664-86f1-af22386324bd, AB8D5E1F-66C1-40F9-B98E-DEC21FFA7626, null, null, d1ba96c6-baac-4664-86f1 -af22386324bc, 2015-03-27 11: 42: 27,427, d1ba96c6-baac-4664-86f1-af22386324bc, 2015-03-27 12: 27: 29,097, f). Error Code: 0 Call: UPDATE _login.division SET ACTIVE =?, MODIFIEDBY =?, MODIFIEDON =?, NAME =?, Parent =? WHERE (id =?) Bind = > [false, d1ba96c6-baac-4664-86f1-af22386324bc, 2015-03-27 12: 27: 29.097, null, null, AB8D5E1F-66C1-40F9-B98E-DEC21FFA7626] Query: UpdateObjectQuery (com.xphub.core.model. Division @ 7cc1d214) URL: