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

📄 basefloadpurview.java

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

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


/**
 * 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 Floadpurview table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="Floadpurview"
 */
public abstract class BaseFloadpurview  implements Serializable {

        public static String PROP_TYPE = "Type";
        public static String PROP_DOUCUMENT_FILE = "DoucumentFile";
        public static String PROP_USER = "User";
        public static String PROP_DEPARTMENT = "Department";
        public static String PROP_ID = "Id";


        private int hashCode = Integer.MIN_VALUE;

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

        // fields
        private java.lang.Byte _type;

        // many to one
        private DoucumentFolder _doucumentFile;
        private Employee _user;
        private Department _department;


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

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

        /**
         * Constructor for required fields
         */
        public BaseFloadpurview (
                java.lang.Integer _id,
                DoucumentFolder _doucumentFile,
                Employee _user,
                Department _department) {

                this.setId(_id);
                this.setDoucumentFile(_doucumentFile);
                this.setUser(_user);
                this.setDepartment(_department);
                initialize();
        }

        protected void initialize () {}



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

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


        /**
         * Return the value associated with the column: type
         */
        public java.lang.Byte getType () {
                return _type;
        }

        /**
         * Set the value related to the column: type
         * @param _type the type value
         */
        public void setType (java.lang.Byte _type) {
                this._type = _type;
        }


        /**
     * @hibernate.property
     *  column=doucumentFile
         * not-null=true
         */
        public DoucumentFolder getDoucumentFile () {
                return this._doucumentFile;
        }

        /**
         * Set the value related to the column: doucumentFile
         * @param _doucumentFile the doucumentFile value
         */
        public void setDoucumentFile (DoucumentFolder _doucumentFile) {
                this._doucumentFile = _doucumentFile;
        }


        /**
     * @hibernate.property
     *  column=userId
         * not-null=true
         */
        public Employee getUser () {
                return this._user;
        }

        /**
         * Set the value related to the column: userId
         * @param _user the userId value
         */
        public void setUser (Employee _user) {
                this._user = _user;
        }


        /**
     * @hibernate.property
     *  column=departmentId
         * not-null=true
         */
        public Department getDepartment () {
                return this._department;
        }

        /**
         * Set the value related to the column: departmentId
         * @param _department the departmentId value
         */
        public void setDepartment (Department _department) {
                this._department = _department;
        }


        public boolean equals (Object obj) {
                if (null == obj) return false;
                if (!(obj instanceof BaseFloadpurview)) return false;
                else {
                        BaseFloadpurview mObj = (BaseFloadpurview) 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 + -