abstractelectivedetail.java
来自「Spring+hibernate学生在线选课系统」· Java 代码 · 共 176 行
JAVA
176 行
/* * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration. * * Created Wed Jan 25 20:41:45 CST 2006 by MyEclipse Hibernate Tool. */package org.mmxbb.schoolelective.model;import java.io.Serializable;/** * A class that represents a row in the electivedetail table. * You can customize the behavior of this class by editing the class, {@link Electivedetail()}. * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration. */public abstract class AbstractElectivedetail 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 id; /** The value of the courseinfo1 association. */ private Integer courseid; /** The value of the electiveinfo1 association. */ private String electiveid; /** The value of the courseinfo1 association. */ private Integer amout; /** The value of the courseinfo1 association. */ private String coursename; /** * Simple constructor of AbstractElectivedetail instances. */ public AbstractElectivedetail() { } /** * Constructor of AbstractElectivedetail instances given a simple primary key. * @param id */ public AbstractElectivedetail(java.lang.Integer id) { this.setId(id); } /** * Return the simple primary key value that identifies this object. * @return java.lang.Integer */ public java.lang.Integer getId() { return id; } /** * Set the simple primary key value that identifies this object. * @param id */ public void setId(java.lang.Integer id) { this.hashValue = 0; this.id = id; } /** * Return the value of the electiveid column. * @return Electiveinfo */ public Integer getCourseid() { return this.courseid; } /** * Set the value of the electiveid column. * @param electiveinfo1 */ public void setCourseid(Integer courseid) { this.courseid = courseid; } /** * Return the value of the courseid column. * @return Courseinfo */ public String getElectiveid() { return this.electiveid; } /** * Set the value of the courseid column. * @param courseinfo1 */ public void setElectiveid(String electiveid) { this.electiveid=electiveid; } /** * Return the value of the amount column. * @return Electiveinfo */ public Integer getAmout() { return this.amout; } /** * Set the value of the amount column. * @param electiveinfo1 */ public void setAmout(Integer amout) { this.amout = amout; } /** * Return the value of the electiveid column. * @return Electiveinfo */ public String getCoursename(){ return coursename; } public void setCoursename(String coursename){ this.coursename=coursename; } /** * 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 Electivedetail)) return false; Electivedetail that = (Electivedetail) rhs; if (this.getId() != null && that.getId() != null) { if (! this.getId().equals(that.getId())) { return false; } } return true; } /** * 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 idValue = this.getId() == null ? 0 : this.getId().hashCode(); result = result * 37 + idValue; this.hashValue = result; } return this.hashValue; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?