📄 baseaircraftenginetypes.java
字号:
package net.ensode.jasperbook.dbaccess.base;
import java.lang.Comparable;
import java.io.Serializable;
/**
* This is an object that contains data related to the aircraft_engine_types
* table. Do not modify this class because it will be overwritten if the
* configuration file related to this class is modified.
*
* @hibernate.class table="aircraft_engine_types"
*/
public abstract class BaseAircraftEngineTypes implements Comparable,
Serializable
{
public static String REF = "AircraftEngineTypes";
public static String PROP_DESCRIPTION = "Description";
public static String PROP_ID = "Id";
// constructors
public BaseAircraftEngineTypes()
{
initialize();
}
/**
* Constructor for primary key
*/
public BaseAircraftEngineTypes(java.lang.String id)
{
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseAircraftEngineTypes(java.lang.String id,
java.lang.String description)
{
this.setId(id);
this.setDescription(description);
initialize();
}
protected void initialize()
{
}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.String id;
// fields
private java.lang.String description;
/**
* Return the unique identifier of this class
*
* @hibernate.id column="aircraft_engine_type_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: description
*/
public java.lang.String getDescription()
{
return description;
}
/**
* Set the value related to the column: description
*
* @param description
* the description value
*/
public void setDescription(java.lang.String description)
{
this.description = description;
}
public boolean equals(Object obj)
{
if (null == obj)
return false;
if (!(obj instanceof net.ensode.jasperbook.dbaccess.AircraftEngineTypes))
return false;
else
{
net.ensode.jasperbook.dbaccess.AircraftEngineTypes aircraftEngineTypes = (net.ensode.jasperbook.dbaccess.AircraftEngineTypes) obj;
if (null == this.getId() || null == aircraftEngineTypes.getId())
return false;
else
return (this.getId().equals(aircraftEngineTypes.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 int compareTo(Object obj)
{
if (obj.hashCode() > hashCode())
return 1;
else if (obj.hashCode() < hashCode())
return -1;
else
return 0;
}
public String toString()
{
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -