package com.mossle.attendance.persistence.domain;

// Generated by Hibernate Tools
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * AttendanceRule .
 * 
 * @author Lingo
 */
@Entity
@Table(name = "ATTENDANCE_RULE")
public class AttendanceRule implements java.io.Serializable {
    private static final long serialVersionUID = 0L;

    /** null. */
    private Long id;

    /** null. */
    private String name;

    /** null. */
    private Integer startHour;

    /** null. */
    private Integer startMinute;

    /** null. */
    private Integer endHour;

    /** null. */
    private Integer endMinute;

    /** null. */
    private Integer startOffset;

    /** null. */
    private Integer endOffset;

    /** null. */
    private String workday;

    /** null. */
    private String tenantId;

    public AttendanceRule() {
    }

    public AttendanceRule(Long id) {
        this.id = id;
    }

    public AttendanceRule(Long id, String name, Integer startHour,
            Integer startMinute, Integer endHour, Integer endMinute,
            Integer startOffset, Integer endOffset, String workday,
            String tenantId) {
        this.id = id;
        this.name = name;
        this.startHour = startHour;
        this.startMinute = startMinute;
        this.endHour = endHour;
        this.endMinute = endMinute;
        this.startOffset = startOffset;
        this.endOffset = endOffset;
        this.workday = workday;
        this.tenantId = tenantId;
    }

    /** @return null. */
    @Id
    @Column(name = "ID", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    /**
     * @param id
     *            null.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /** @return null. */
    @Column(name = "NAME", length = 50)
    public String getName() {
        return this.name;
    }

    /**
     * @param name
     *            null.
     */
    public void setName(String name) {
        this.name = name;
    }

    /** @return null. */
    @Column(name = "START_HOUR")
    public Integer getStartHour() {
        return this.startHour;
    }

    /**
     * @param startHour
     *            null.
     */
    public void setStartHour(Integer startHour) {
        this.startHour = startHour;
    }

    /** @return null. */
    @Column(name = "START_MINUTE")
    public Integer getStartMinute() {
        return this.startMinute;
    }

    /**
     * @param startMinute
     *            null.
     */
    public void setStartMinute(Integer startMinute) {
        this.startMinute = startMinute;
    }

    /** @return null. */
    @Column(name = "END_HOUR")
    public Integer getEndHour() {
        return this.endHour;
    }

    /**
     * @param endHour
     *            null.
     */
    public void setEndHour(Integer endHour) {
        this.endHour = endHour;
    }

    /** @return null. */
    @Column(name = "END_MINUTE")
    public Integer getEndMinute() {
        return this.endMinute;
    }

    /**
     * @param endMinute
     *            null.
     */
    public void setEndMinute(Integer endMinute) {
        this.endMinute = endMinute;
    }

    /** @return null. */
    @Column(name = "START_OFFSET")
    public Integer getStartOffset() {
        return this.startOffset;
    }

    /**
     * @param startOffset
     *            null.
     */
    public void setStartOffset(Integer startOffset) {
        this.startOffset = startOffset;
    }

    /** @return null. */
    @Column(name = "END_OFFSET")
    public Integer getEndOffset() {
        return this.endOffset;
    }

    /**
     * @param endOffset
     *            null.
     */
    public void setEndOffset(Integer endOffset) {
        this.endOffset = endOffset;
    }

    /** @return null. */
    @Column(name = "WORKDAY", length = 200)
    public String getWorkday() {
        return this.workday;
    }

    /**
     * @param workday
     *            null.
     */
    public void setWorkday(String workday) {
        this.workday = workday;
    }

    /** @return null. */
    @Column(name = "TENANT_ID", length = 64)
    public String getTenantId() {
        return this.tenantId;
    }

    /**
     * @param tenantId
     *            null.
     */
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
}
