KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > SubDetail


1 //$Id: SubDetail.java,v 1.1 2004/09/26 05:18:26 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 public class SubDetail {
5     private String JavaDoc name;
6     private long id;
7     /**
8      * Returns the id.
9      * @return long
10      */

11     public long getId() {
12         return id;
13     }
14     
15     /**
16      * Returns the name.
17      * @return String
18      */

19     public String JavaDoc getName() {
20         return name;
21     }
22     
23     /**
24      * Sets the id.
25      * @param id The id to set
26      */

27     public void setId(long id) {
28         this.id = id;
29     }
30     
31     /**
32      * Sets the name.
33      * @param name The name to set
34      */

35     public void setName(String JavaDoc name) {
36         this.name = name;
37     }
38     
39 }
40
41
42
43
44
45
46
Popular Tags