Ejemplo n.º 1
0
 @Transactional
 public Production modifie(Production aProduction, String nom, String logoUrl) {
   aProduction.setNom(nom);
   aProduction.setLogoUrl(logoUrl);
   em.persist(aProduction);
   return aProduction;
 }
Ejemplo n.º 2
0
 @Transactional
 public Production enregistrerNouveau(String nom, String logoUrl) {
   Production aProduction = new Production();
   aProduction.setNom(nom);
   aProduction.setLogoUrl(logoUrl);
   em.persist(aProduction);
   return aProduction;
 }