diff --git a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoImpl.java b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoImpl.java index fd627e2..6ba597a 100644 --- a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoImpl.java +++ b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoImpl.java @@ -1,12 +1,9 @@ package de.kreth.vaadin.clubhelper.vaadinclubhelper.dao; -import java.util.List; - import javax.persistence.TypedQuery; import org.springframework.stereotype.Repository; -import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.Contact; import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.EntityAccessor; import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.Person; import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.Startpass; @@ -29,12 +26,6 @@ public class PersonDaoImpl extends AbstractDaoImpl implements PersonDao if (startPass != null && startPass.hasValidId() == false) { persistIfNew(startPass); } - List contacts = obj.getContacts(); - if (contacts != null) { - for (Contact c : contacts) { - persistIfNew(c); - } - } } public void persistIfNew(EntityAccessor c) {