Auf Detailseite wechseln und auf dem Reiter "Kind" über die Schaltfläche "neu" ein Kind erstellen
Zurück zur Übersichtstabelle wechseln und bei Bürger "1" die Schaltfläche "kopieren betätigen.
Auf der Oberfläche gibt es keine Fehlermeldung. Der Service zeigt folgende Meldung an:
Unique index or primary key violation: "UK_KINDER_ON_BUERGER_KINDER_INDEX_5 ON PUBLIC.BUERGER_KINDER(KINDER) VALUES (4, 1)"; SQL statement:
insert into buerger_kinder (buerger, kinder) values (?, ?) [23505-187]
2015-08-13 11:22:49.766 INFO 4058 --- [nio-8080-exec-2] o.h.e.j.b.internal.AbstractBatchImpl : HHH000010: On release of batch it still contained JDBC statements
2015-08-13 11:22:49.770 ERROR 4058 --- [nio-8080-exec-2] 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 ["UK_KINDER_ON_BUERGER_KINDER_INDEX_5 ON PUBLIC.BUERGER_KINDER(KINDER) VALUES (4, 1)"; SQL statement:
insert into buerger_kinder (buerger, kinder) values (?, ?) [23505-187]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause
org.h2.jdbc.JdbcSQLException: Eindeutiger Index oder Primärschlüssel verletzt: "UK_KINDER_ON_BUERGER_KINDER_INDEX_5 ON PUBLIC.BUERGER_KINDER(KINDER) VALUES (4, 1)"
Unique index or primary key violation: "UK_KINDER_ON_BUERGER_KINDER_INDEX_5 ON PUBLIC.BUERGER_KINDER(KINDER) VALUES (4, 1)"; SQL statement:
insert into buerger_kinder (buerger, kinder) values (?, ?) [23505-187]
Ein Bürger mit Kind kann nicht kopiert werden.
Wie folgt reproduzierbar:
Auf der Oberfläche gibt es keine Fehlermeldung. Der Service zeigt folgende Meldung an: