Closed xdoo closed 9 years ago
Beim Löschen eines Bürgers tritt ein Fehler auf.
Auf Service Seite erscheint folgende Fehlermeldung:
2015-08-12 07:58:08.869 ERROR 30428 --- [io-8080-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint ["FK_BUERGER_KINDER_TO_KINDER: PUBLIC.BUERGER_KINDER FOREIGN KEY(KINDER) REFERENCES PUBLIC.BUERGER(ID) (4)"; SQL statement: delete from buerger where id=? [23503-187]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FK_BUERGER_KINDER_TO_KINDER: PUBLIC.BUERGER_KINDER FOREIGN KEY(KINDER) REFERENCES PUBLIC.BUERGER(ID) (4)" Referential integrity constraint violation: "FK_BUERGER_KINDER_TO_KINDER: PUBLIC.BUERGER_KINDER FOREIGN KEY(KINDER) REFERENCES PUBLIC.BUERGER(ID) (4)"; SQL statement: delete from buerger where id=? [23503-187]
Beim Löschen eines Bürgers tritt ein Fehler auf.
Auf Service Seite erscheint folgende Fehlermeldung: