I'm trying to update an object called "Alumno", this is the class:
public class Alumno extends Persona {
private Alumno alumno;
private List<String> telefonos;
private Direccion direccion;
private List<Asignatura> asignaturas;
And this is the class "Asignatura":
public class Asignatura {
private String alias;
private String nombre;
private Long curso;
private Profesor profesor;
private List<Alumno> alumnos;
I get that the error is because there is already an Asignatura called "AED", but how can I "merge" the list into the db? Thank you.