/**
 * "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 Actividad {
    private int id_pk;
    private orm.Asignatura asignatura_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 fecha;
    private String tipo;

    public Actividad() {
    }

    private void this_setOwner(Object owner, int key) {
        if (key == orm.ORMConstants.KEY_ACTIVIDAD_ASIGNATURA_ID_FK) {
            this.asignatura_id_fk = (orm.Asignatura) 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 getFecha() {
        return fecha;
    }

    public void setFecha(java.util.Date value) {
        this.fecha = value;
    }

    public String getTipo() {
        return tipo;
    }

    public void setTipo(String value) {
        this.tipo = value;
    }

    public orm.Asignatura getAsignatura_id_fk() {
        return asignatura_id_fk;
    }

    public void setAsignatura_id_fk(orm.Asignatura value) {
        if (asignatura_id_fk != null) {
            asignatura_id_fk.actividad.remove(this);
        }
        if (value != null) {
            value.actividad.add(this);
        }
    }

    private orm.Asignatura getORM_Asignatura_id_fk() {
        return asignatura_id_fk;
    }

    /**
     * This method is for internal use only.
     */
    public void setORM_Asignatura_id_fk(orm.Asignatura value) {
        this.asignatura_id_fk = value;
    }

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

}
