/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package vn.edu.rmit.examples; import java.io.Serializable; /** * * @author v10532 */ public class ProductDTO implements Serializable { public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ProductDTO other = (ProductDTO) obj; if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) { return false; } return true; } public int hashCode() { int hash = 7; hash = 41 * hash + (this.id != null ? this.id.hashCode() : 0); return hash; } private Long id; private String name; private Float price; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Float getPrice() { return price; } public void setPrice(Float price) { this.price = price; } }