Commit dc607392 by Rubén Ramírez

feat: [RepositorioRecurso]:Implementada la función de modificar recurso en el repositorio

parent 1ca09ad6
......@@ -14,6 +14,7 @@ import java.util.Set;
@Entity
@Table(name = "recursos")
@Getter
@Setter
@NoArgsConstructor
public class Recurso {
......
......@@ -73,5 +73,9 @@ public class RepositorioRecurso {
em.remove(recurso);
}
@Transactional
public Recurso modificarRecurso(Recurso recurso) {
return em.merge(recurso);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment