/** * Copyright (c)2010-2011 Enterprise Website Content Management System(EWCMS), All rights reserved. * EWCMS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * http://www.ewcms.com */ package com.ewcms.web.util; import java.util.Date; /** * * @author wangwei */ public class JSONModel { private Integer id; private String name; private Float money; private Date brithDate; public Date getBrithDate() { return brithDate; } public void setBrithDate(Date brithDate) { this.brithDate = brithDate; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Float getMoney() { return money; } public void setMoney(Float money) { this.money = money; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final JSONModel other = (JSONModel) obj; if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) { return false; } return true; } @Override public int hashCode() { int hash = 7; hash = 31 * hash + (this.id != null ? this.id.hashCode() : 0); return hash; } }