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

📄 abstracttdoctype.java

📁 基于hibernate + struts框架 采用mssql数据库,因容量原因,把lib删去了. 由于这是我第一个作品,有很多地方需要改进. 希望大家多提意见. qq: 258268936
💻 JAVA
字号:
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Thu Nov 09 17:03:31 CST 2006 by MyEclipse Hibernate Tool.
 */
package com.hdlb.hibernate;

import java.io.Serializable;

/**
 * A class that represents a row in the t_doctype table. 
 * You can customize the behavior of this class by editing the class, {@link TDoctype()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractTDoctype 
    implements Serializable
{
    /** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Integer fid;

    /** The value of the simple ftypename property. */
    private java.lang.String ftypename;

    /**
     * Simple constructor of AbstractTDoctype instances.
     */
    public AbstractTDoctype()
    {
    }

    /**
     * Constructor of AbstractTDoctype instances given a simple primary key.
     * @param fid
     */
    public AbstractTDoctype(java.lang.Integer fid)
    {
        this.setFid(fid);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Integer
     */
    public java.lang.Integer getFid()
    {
        return fid;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param fid
     */
    public void setFid(java.lang.Integer fid)
    {
        this.hashValue = 0;
        this.fid = fid;
    }

    /**
     * Return the value of the ftypeName column.
     * @return java.lang.String
     */
    public java.lang.String getFtypename()
    {
        return this.ftypename;
    }

    /**
     * Set the value of the ftypeName column.
     * @param ftypename
     */
    public void setFtypename(java.lang.String ftypename)
    {
        this.ftypename = ftypename;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof TDoctype))
            return false;
        TDoctype that = (TDoctype) rhs;
        if (this.getFid() == null || that.getFid() == null)
            return false;
        return (this.getFid().equals(that.getFid()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int fidValue = this.getFid() == null ? 0 : this.getFid().hashCode();
            result = result * 37 + fidValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}

⌨️ 快捷键说明

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