package com.mossle.disk.persistence.domain;

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

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

    /** null. */
    private Long id;

    /** null. */
    private DiskRule diskRule;

    /** null. */
    private DiskShare diskShare;

    /** null. */
    private String type;

    /** null. */
    private String ref;

    /** null. */
    private String entityRef;

    /** null. */
    private String entityCatalog;

    /** null. */
    private Integer mask;

    public DiskAcl() {
    }

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

    public DiskAcl(Long id, DiskRule diskRule, DiskShare diskShare,
            String type, String ref, String entityRef, String entityCatalog,
            Integer mask) {
        this.id = id;
        this.diskRule = diskRule;
        this.diskShare = diskShare;
        this.type = type;
        this.ref = ref;
        this.entityRef = entityRef;
        this.entityCatalog = entityCatalog;
        this.mask = mask;
    }

    /** @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. */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "RULE_ID")
    public DiskRule getDiskRule() {
        return this.diskRule;
    }

    /**
     * @param diskRule
     *            null.
     */
    public void setDiskRule(DiskRule diskRule) {
        this.diskRule = diskRule;
    }

    /** @return null. */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "SHARE_ID")
    public DiskShare getDiskShare() {
        return this.diskShare;
    }

    /**
     * @param diskShare
     *            null.
     */
    public void setDiskShare(DiskShare diskShare) {
        this.diskShare = diskShare;
    }

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

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

    /** @return null. */
    @Column(name = "REF", length = 64)
    public String getRef() {
        return this.ref;
    }

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

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

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

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

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

    /** @return null. */
    @Column(name = "MASK")
    public Integer getMask() {
        return this.mask;
    }

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