Example #1
0
 @Override
 public CATEG1 modify(int id_cat1, String cat1) {
   Long id = new Long(id_cat1);
   CATEG1 categ1 = cat1Repo.findOne(id);
   categ1.setNombre(cat1);
   return cat1Repo.save(categ1);
 }
Example #2
0
 @Override
 public CATEG1 create(String cat1) {
   CATEG1 categ1 = new CATEG1();
   categ1.setNombre(cat1);
   return cat1Repo.save(categ1);
 }