/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * <p>
 * This is an automatic generated file. It will be regenerated every time
 * you generate persistence class.
 * <p>
 * Modifying its content may cause the program not work, or your work may lost.
 * <p>
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm;

public class Asistencia {
    private int id_pk;
    private orm.Estudiante estudiante_id_fk;
    org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
        public void setOwner(Object owner, int key) {
            this_setOwner(owner, key);
        }

    };
    private java.util.Date dia;
    private Boolean asistio;

    public Asistencia() {
    }

    private void this_setOwner(Object owner, int key) {
        if (key == orm.ORMConstants.KEY_ASISTENCIA_ESTUDIANTE_ID_FK) {
            this.estudiante_id_fk = (orm.Estudiante) owner;
        }
    }

    public int getId_pk() {
        return id_pk;
    }

    private void setId_pk(int value) {
        this.id_pk = value;
    }

    public int getORMID() {
        return getId_pk();
    }

    public java.util.Date getDia() {
        return dia;
    }

    public void setDia(java.util.Date value) {
        this.dia = value;
    }

    public void setAsistio(boolean value) {
        setAsistio(new Boolean(value));
    }

    public Boolean getAsistio() {
        return asistio;
    }

    public void setAsistio(Boolean value) {
        this.asistio = value;
    }

    public orm.Estudiante getEstudiante_id_fk() {
        return estudiante_id_fk;
    }

    public void setEstudiante_id_fk(orm.Estudiante value) {
        if (estudiante_id_fk != null) {
            estudiante_id_fk.asistencia.remove(this);
        }
        if (value != null) {
            value.asistencia.add(this);
        }
    }

    private orm.Estudiante getORM_Estudiante_id_fk() {
        return estudiante_id_fk;
    }

    /**
     * This method is for internal use only.
     */
    public void setORM_Estudiante_id_fk(orm.Estudiante value) {
        this.estudiante_id_fk = value;
    }

    public String toString() {
        return String.valueOf(getId_pk());
    }

}
