protected PartnershipManager(EntityManager em) {
this.em = em;
}
public Partenaire savePartnership(final Partenaire partenaire) throws PersistenceViolationException {
Partenaire newPartenaire = partenaire;
try {
em.merge(newPartenaire.getPerson());
newPartenaire = em.merge(newPartenaire);
em.flush();
} catch (Exception e) {
throw new PersistenceViolationException("Erreur dans la validation. ", e.fillInStackTrace());
}