package cat.model; import java.io.Serializable; import org.apache.commons.lang.builder.ToStringBuilder; /** @author Hibernate CodeGenerator */ public class Mouse extends SmallAnimal implements Serializable { /** nullable persistent field */ private Integer tail; /** full constructor */ public Mouse(String name, cat.model.Owner owner, Integer tail) { super(name, owner); this.tail = tail; } /** default constructor */ public Mouse() { } /** minimal constructor */ public Mouse(cat.model.Owner owner) { super(owner); } public Integer getTail() { return this.tail; } public void setTail(Integer tail) { this.tail = tail; } public String toString() { return new ToStringBuilder(this) .append("id", getId()) .toString(); } }