⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basedoucumentfolder.java

📁 办公自动化项目
💻 JAVA
字号:
package com.t60.oa.po.base;

import java.io.Serializable;
import com.t60.oa.po.Employee;


/**
 * This class has been automatically generated by Hibernate Synchronizer.
 * For more information or documentation, visit The Hibernate Synchronizer page
 * at http://www.binamics.com/hibernatesync or contact Joe Hudson at joe@binamics.com.
 *
 * This is an object that contains data related to the DoucumentFolder table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="DoucumentFolder"
 */
public abstract class BaseDoucumentFolder  implements Serializable {

        public static String PROP_OWNER = "Owner";
        public static String PROP_STATE = "State";
        public static String PROP_TYPE_DOCUMENT = "TypeDocument";
        public static String PROP_EDITE = "Edite";
        public static String PROP_NAME = "Name";
        public static String PROP_CREATE_DATE = "CreateDate";
        public static String PROP_ID = "Id";


        private int hashCode = Integer.MIN_VALUE;

        // primary key
        private java.lang.String _id;

        // fields
        private boolean _typeDocument;
        private boolean _state;
        private java.util.Date _createDate;
        private java.lang.String _name;
        // many to one
        private Employee _owner;
        private Employee _edite;

        // collections
        private java.util.List _doucumentEditionList;
        private java.util.List _floadpurviewList;


        // constructors
        public BaseDoucumentFolder () {
                initialize();
        }

        /**
         * Constructor for primary key
         */
        public BaseDoucumentFolder (java.lang.String _id) {
                this.setId(_id);
                initialize();
        }

        /**
         * Constructor for required fields
         */
        public BaseDoucumentFolder (
                java.lang.String _id,
                Employee _owner,
                Employee _edite,
                java.lang.String _name) {

                this.setId(_id);
                this.setOwner(_owner);
                this.setEdite(_edite);
                this.setName(_name);
                initialize();
        }

        protected void initialize () {}



        /**
         * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="vm"
     *  column="id"
     */
        public java.lang.String getId () {
                return _id;
        }

        /**
         * Set the unique identifier of this class
         * @param _id the new ID
         */
        public void setId (java.lang.String _id) {
                this._id = _id;
                this.hashCode = Integer.MIN_VALUE;
        }


        /**
         * Return the value associated with the column: typeDocument
         */
        public boolean isTypeDocument () {
                return _typeDocument;
        }

        /**
         * Set the value related to the column: typeDocument
         * @param _typeDocument the typeDocument value
         */
        public void setTypeDocument (boolean _typeDocument) {
                this._typeDocument = _typeDocument;
        }


        /**
         * Return the value associated with the column: state
         */
        public boolean isState () {
                return _state;
        }

        /**
         * Set the value related to the column: state
         * @param _state the state value
         */
        public void setState (boolean _state) {
                this._state = _state;
        }


        /**
         * Return the value associated with the column: createDate
         */
        public java.util.Date getCreateDate () {
                return _createDate;
        }

        /**
         * Set the value related to the column: createDate
         * @param _createDate the createDate value
         */
        public void setCreateDate (java.util.Date _createDate) {
                this._createDate = _createDate;
        }


        /**
         * Return the value associated with the column: name
         */
        public java.lang.String getName () {
                return _name;
        }

        /**
         * Set the value related to the column: name
         * @param _name the name value
         */
        public void setName (java.lang.String _name) {
                this._name = _name;
        }


        /**
     * @hibernate.property
     *  column=ownerId
         * not-null=true
         */
        public Employee getOwner () {
                return this._owner;
        }

        /**
         * Set the value related to the column: ownerId
         * @param _owner the ownerId value
         */
        public void setOwner (Employee _owner) {
                this._owner = _owner;
        }


        /**
     * @hibernate.property
     *  column=editeId
         * not-null=true
         */
        public Employee getEdite () {
                return this._edite;
        }

        /**
         * Set the value related to the column: editeId
         * @param _edite the editeId value
         */
        public void setEdite (Employee _edite) {
                this._edite = _edite;
        }


        /**
         * Return the value associated with the column: DoucumentEditionSet
         */
        public java.util.List getDoucumentEditionList () {
                return this._doucumentEditionList;
        }

        /**
         * Set the value related to the column: DoucumentEditionSet
         * @param _doucumentEditionSet the DoucumentEditionSet value
         */
        public void setDoucumentEditionList (java.util.List _doucumentEditionSet) {
                this._doucumentEditionList = _doucumentEditionSet;
        }

        public void addToDoucumentEdition_doucumentEditionList (Object obj) {
                if (null == this._doucumentEditionList) this._doucumentEditionList = new java.util.ArrayList();
                this._doucumentEditionList.add(obj);
        }



        /**
         * Return the value associated with the column: FloadpurviewSet
         */
        public java.util.List getFloadpurviewList () {
                return this._floadpurviewList;
        }

        /**
         * Set the value related to the column: FloadpurviewSet
         * @param _floadpurviewSet the FloadpurviewSet value
         */
        public void setFloadpurviewList (java.util.List _floadpurviewList) {
                this._floadpurviewList = _floadpurviewList;
        }

        public void addToFloadpurviewSet (Object obj) {
                if (null == this._floadpurviewList) this._floadpurviewList = new java.util.ArrayList();
                this._floadpurviewList.add(obj);
        }



        public boolean equals (Object obj) {
                if (null == obj) return false;
                if (!(obj instanceof BaseDoucumentFolder)) return false;
                else {
                        BaseDoucumentFolder mObj = (BaseDoucumentFolder) obj;
                        if (null == this.getId() || null == mObj.getId()) return false;
                        else return (this.getId().equals(mObj.getId()));
                }
        }


        public int hashCode () {
                if (Integer.MIN_VALUE == this.hashCode) {
                        if (null == this.getId()) return super.hashCode();
                        else {
                                String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
                                this.hashCode = hashStr.hashCode();
                        }
                }
                return this.hashCode;
        }


        public String toString () {
                return super.toString();
        }


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -