KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.hibernate.test.legacy;
2
3 /**
4  * @author Wolfgang Voelkl
5  */

6 public class MainObject {
7     private Long JavaDoc id;
8     private String JavaDoc description;
9     private Object2 obj2;
10
11     public Long JavaDoc getId() {
12         return id;
13     }
14
15     public void setId(Long JavaDoc id) {
16         this.id = id;
17     }
18
19     public Object2 getObj2() {
20         return obj2;
21     }
22
23     public String JavaDoc getDescription() {
24         return description;
25     }
26
27     public void setDescription(String JavaDoc string) {
28         description = string;
29     }
30
31     public void setObj2(Object2 object2) {
32         this.obj2 = object2;
33         if (object2 != null) {
34             object2.setBelongsToMainObj(this);
35         }
36     }
37
38 }
39
Popular Tags