1 package org.hibernate.test.legacy; 3 4 public class Top { 5 private long id; 6 private String name; 7 private String address; 8 private int count; 9 private java.util.Date date; 10 private Top other; 11 private Top top; 12 13 public Top(int c) { 14 count=c; 15 } 16 public Top() {} 17 18 public void init() { 19 name="Someone With Along Name"; 20 address="1234 Some Street, Some City, Victoria, 3000, Austraya"; 21 count=69; 22 date=new java.sql.Date (666); 23 } 24 28 public String getName() { 29 return name; 30 } 31 35 public void setName(String name) { 36 this.name = name; 37 } 38 39 43 public String getAddress() { 44 return address; 45 } 46 50 public void setAddress(String address) { 51 this.address = address; 52 } 53 54 58 public int getCount() { 59 return count; 60 } 61 65 public void setCount(int count) { 66 this.count = count; 67 } 68 69 73 public java.util.Date getDate() { 74 return date; 75 } 76 80 public void setDate(java.util.Date date) { 81 this.date = date; 82 } 83 84 88 public Top getOther() { 89 return other; 90 } 91 92 96 public void setOther(Top other) { 97 this.other = other; 98 } 99 100 public long getId() { 101 return id; 102 } 103 104 public void setId(long l) { 105 id = l; 106 } 107 108 } 109 110 111 112 113 114 115 116 | Popular Tags |