hz-zhhq-app-service/greenH5modul/.svn/pristine/99/9950493dea7c168e5284c932981...

293 lines
5.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.nationalelectric.greenH5.po;
//导入 java 类
import java.io.Serializable;
import java.sql.Date;
import java.util.*;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* GreenParkRecord的POJO类
*
* @author wjx
*/
public class GreenParkRecord implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/**
* 属性id
*/
private Long id;
/**
* 属性carNum
*/
private String carNum;
/**
* 属性gmtCreated
*/
private Date gmtCreated;
/**
* 属性inOut
*/
private String inOut = "0";
/**
* 属性carType
*/
private String carType;
/**
* 属性isDeleted
*/
private Character isDeleted = 'N';
/**
* 属性carownerId
*/
private String carownerId;
/**
* 属性carownerName
*/
private String carownerName;
/**
* 属性overtime
*/
private String overtime = "0";
/**
* 属性exceedingTime
*/
private String exceedingTime;
/**
* GreenParkRecord构造函数
*/
public GreenParkRecord() {
super();
}
/**
* GreenParkRecord完整的构造函数
*/
public GreenParkRecord(Long id){
this.id = id;
}
/**
* 属性 id 的get方法
* @return Long
*/
public Long getId(){
return id;
}
/**
* 属性 id 的set方法
* @return
*/
public void setId(Long id){
this.id = id;
}
/**
* 属性 车牌号 的get方法
* @return String
*/
public String getCarNum(){
return carNum;
}
/**
* 属性 车牌号 的set方法
* @return
*/
public void setCarNum(String carNum){
this.carNum = carNum;
}
/**
* 属性 创建时间 的get方法
* @return Date
*/
public Date getGmtCreated(){
return gmtCreated;
}
/**
* 属性 创建时间 的set方法
* @return
*/
public void setGmtCreated(Date gmtCreated){
this.gmtCreated = gmtCreated;
}
/**
* 属性 0 进 1出 的get方法
* @return String
*/
public String getInOut(){
return inOut;
}
/**
* 属性 0 进 1出 的set方法
* @return
*/
public void setInOut(String inOut){
this.inOut = inOut;
}
/**
* 属性 car_type 的get方法
* @return String
*/
public String getCarType(){
return carType;
}
/**
* 属性 car_type 的set方法
* @return
*/
public void setCarType(String carType){
this.carType = carType;
}
/**
* 属性 是否删除Y/N默认N 的get方法
* @return Character
*/
public Character getIsDeleted(){
return isDeleted;
}
/**
* 属性 是否删除Y/N默认N 的set方法
* @return
*/
public void setIsDeleted(Character isDeleted){
this.isDeleted = isDeleted;
}
/**
* 属性 车主id 的get方法
* @return String
*/
public String getCarownerId(){
return carownerId;
}
/**
* 属性 车主id 的set方法
* @return
*/
public void setCarownerId(String carownerId){
this.carownerId = carownerId;
}
/**
* 属性 车主姓名 的get方法
* @return String
*/
public String getCarownerName(){
return carownerName;
}
/**
* 属性 车主姓名 的set方法
* @return
*/
public void setCarownerName(String carownerName){
this.carownerName = carownerName;
}
/**
* 属性 是否超时 0未超时1超时 的get方法
* @return String
*/
public String getOvertime(){
return overtime;
}
/**
* 属性 是否超时 0未超时1超时 的set方法
* @return
*/
public void setOvertime(String overtime){
this.overtime = overtime;
}
/**
* 属性 超出时间 的get方法
* @return String
*/
public String getExceedingTime(){
return exceedingTime;
}
/**
* 属性 超出时间 的set方法
* @return
*/
public void setExceedingTime(String exceedingTime){
this.exceedingTime = exceedingTime;
}
/**
* Hibernate通过该方法判断对象是否相等
* @return boolean
*/
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || !(o instanceof GreenParkRecord))
return false;
GreenParkRecord other = (GreenParkRecord) o;
return new EqualsBuilder()
.append(this.getId(), other.getId())
.isEquals();
}
/**
* toString方法
* @return String
*/
public String toString(){
return new StringBuffer()
.append("id"+":"+getId())
.append("carNum"+":"+getCarNum())
.append("gmtCreated"+":"+getGmtCreated())
.append("inOut"+":"+getInOut())
.append("carType"+":"+getCarType())
.append("isDeleted"+":"+getIsDeleted())
.append("carownerId"+":"+getCarownerId())
.append("carownerName"+":"+getCarownerName())
.append("overtime"+":"+getOvertime())
.append("exceedingTime"+":"+getExceedingTime())
.toString();
}
/**
* hashcode方法
* @return int
*
*/
@Override
public int hashCode(){
return super.hashCode();
}
}