示例#1
0
 @Transactional(propagation = Propagation.REQUIRED)
 public void delete(Prova Prova) {
   repository.excluir(Prova);
 }
示例#2
0
 @Transactional(propagation = Propagation.REQUIRED)
 public void delete(int id) {
   repository.excluirPor(id);
 }
示例#3
0
 @Transactional(propagation = Propagation.REQUIRED)
 public Prova update(int id, Prova prova) {
   prova = repository.buscarPor(id);
   return repository.alterar(0, prova);
 }
示例#4
0
 @Transactional(propagation = Propagation.REQUIRED)
 public Prova update(Prova prova) {
   return repository.alterar(0, prova);
 }
示例#5
0
 @Transactional(propagation = Propagation.REQUIRED)
 public void create(Prova prova) {
   prepararInsert(prova);
   repository.inserir(prova);
 }
示例#6
0
 @Transactional
 public Prova read(int id) {
   return repository.buscarPor(id);
 }
示例#7
0
 @Transactional
 public List<Prova> list() {
   return repository.listar();
 }