1 package org.hibernate.test.legacy; 3 4 import java.io.Serializable ; 5 6 public class Simple implements Serializable { 7 private String name; 8 private String address; 9 private int count; 10 private java.util.Date date; 11 private Float number; 12 private Simple other; 13 14 private Long parent; 15 16 public Simple(int c) { 17 count=c; 18 } 19 public Simple() {} 20 21 public void init() { 22 name="Someone With Along Name"; 23 address="1234 Some Street, Some City, Victoria, 3000, Austraya"; 24 count=69; 25 date=new java.sql.Date (666); 26 number=new Float (55.8); 27 } 28 32 public String getName() { 33 return name; 34 } 35 39 public void setName(String name) { 40 this.name = name; 41 } 42 43 47 public String getAddress() { 48 return address; 49 } 50 54 public void setAddress(String address) { 55 this.address = address; 56 } 57 58 62 public int getCount() { 63 return count; 64 } 65 69 public void setCount(int count) { 70 this.count = count; 71 } 72 73 77 public java.util.Date getDate() { 78 return date; 79 } 80 84 public void setDate(java.util.Date date) { 85 this.date = date; 86 } 87 88 92 public Float getPay() { 93 return number; 94 } 95 96 100 public void setPay(Float number) { 101 this.number = number; 102 } 103 104 108 public Simple getOther() { 109 return other; 110 } 111 112 116 public void setOther(Simple other) { 117 this.other = other; 118 } 119 120 } 121 122 123 124 125 126 127 128 | Popular Tags |