1 15 package org.apache.tapestry.vlib.ejb; 16 17 import java.io.Serializable ; 18 19 26 27 public class Publisher implements Serializable 28 { 29 private static final long serialVersionUID = -2843992788128325821L; 30 31 private Integer _id; 32 private String _name; 33 34 public Publisher(Integer id, String name) 35 { 36 _id = id; 37 _name = name; 38 } 39 40 public Integer getId() 41 { 42 return _id; 43 } 44 45 public String getName() 46 { 47 return _name; 48 } 49 50 57 58 public void setName(String value) 59 { 60 _name = value; 61 } 62 63 public String toString() 64 { 65 StringBuffer buffer; 66 67 buffer = new StringBuffer ("Publisher["); 68 buffer.append(_id); 69 buffer.append(' '); 70 buffer.append(_name); 71 buffer.append(']'); 72 73 return buffer.toString(); 74 } 75 } | Popular Tags |