/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.javaxyq.data; import java.io.Serializable; /** * * @author Administrator */ public class Scene implements Serializable { private static final long serialVersionUID = 1L; private Integer id; private String name; private String description; public Scene() { } public Scene(Integer id) { this.id = id; } public Scene(Integer id, String name) { this.id = id; this.name = name; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Scene)) { return false; } Scene other = (Scene) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; } @Override public String toString() { return String.format("Scene [id=%s, name=%s, description=%s]", id, name, description); } }