package com.publiccms.entities.sys;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import com.publiccms.common.generator.annotation.GeneratorColumn;

/**
 * SysDeptmItem generated by hbm2java
 */
@Entity
@Table(name = "sys_dept_item")
@DynamicUpdate
public class SysDeptItem implements java.io.Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @GeneratorColumn(title = "ID")
    private SysDeptItemId id;

    public SysDeptItem() {
    }

    public SysDeptItem(SysDeptItemId id) {
        this.id = id;
    }

    @EmbeddedId
    @AttributeOverrides({ @AttributeOverride(name = "deptId", column = @Column(name = "dept_id", nullable = false)),
            @AttributeOverride(name = "itemType", column = @Column(name = "item_type", nullable = false)),
            @AttributeOverride(name = "itemId", column = @Column(name = "item_id", nullable = false)) })
    public SysDeptItemId getId() {
        return this.id;
    }

    public void setId(SysDeptItemId id) {
        this.id = id;
    }

}
