Exemplo n.º 1
0
 @Transactional
 public Production modifie(Production aProduction, String nom, String logoUrl) {
   aProduction.setNom(nom);
   aProduction.setLogoUrl(logoUrl);
   em.persist(aProduction);
   return aProduction;
 }
Exemplo 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;
 }