@Override
public Long savePromesse(Person p, Long l, String d) throws PersistenceViolationException {
if (l == null || l <= 0L) {
throw new PersistenceViolationException("le montant ne peut etre null ou <=0");
}
Don don = new Don(p, l, d);
try {
em.persist(don);
em.flush();
return don.getId();
} catch (Exception e) {
throw new PersistenceViolationException("Save promesse en Echec", e);
}
}