public void modificar(EntidadMateria entidad)
 {
     sql = "update materia set "
           + "nombre ='" + entidad.Nombre + "',"
           + "id_profesor = " + entidad.Id_profesor
           + " where "
           + "id_materia = " + entidad.Id_materia;
     mod.ejecutarSQL(sql);
 }
 public void insertar(EntidadMateria entidad)
 {
     sql = "insert into materia ("
           + "id_materia,"
           + "nombre,"
           + "id_profesor"
           + ") VALUES ("
           + entidad.Id_materia + ","
           + "'" + entidad.Nombre + "',"
           + entidad.Id_profesor
           + ")";
     mod.ejecutarSQL(sql);
 }