1
I am "trying" to clone the following class:
public class CadHorario implements Serializable, Cloneable {
    private int cdHorario;
    ...
    private Date horarioInicio;
    private Date horarioFim;
    private DiasDaSemana diasDaSemana;
    ...
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
Diasdasemana class:
public class DiasDaSemana implements Cloneable {
    private boolean seg;
    private boolean ter;
    private boolean qua;
    private boolean qui;
    private boolean sex;
    private boolean sab;
    private boolean dom;
    ...
    @Override
    protected Object clone() throws CloneNotSupportedException {
         return super.clone();
    }
}
some attribute is cloning, more others like DiasDaSemana is not cloning.
I’m cloning like this:
CadHorario clonado = (CadHorario) horario.clone();
Could someone help me?
Take a look here: How to copy objects in java, maybe help you (maybe not).
– Math