KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.hibernate.test.legacy;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.List JavaDoc;
5
6 /**
7  * @author Stefano Travelli
8  */

9 public class Inner implements Serializable JavaDoc {
10     private InnerKey id;
11     private String JavaDoc dudu;
12     private List JavaDoc middles;
13     private Outer backOut;
14
15     public InnerKey getId() {
16         return id;
17     }
18
19     public void setId(InnerKey id) {
20         this.id = id;
21     }
22
23     public String JavaDoc getDudu() {
24         return dudu;
25     }
26
27     public void setDudu(String JavaDoc dudu) {
28         this.dudu = dudu;
29     }
30
31     public boolean equals(Object JavaDoc o) {
32         if (this == o) return true;
33         if (!(o instanceof Inner)) return false;
34
35         final Inner cidSuper = (Inner) o;
36
37         if (id != null ? !id.equals(cidSuper.id) : cidSuper.id != null) return false;
38
39         return true;
40     }
41
42     public int hashCode() {
43         return (id != null ? id.hashCode() : 0);
44     }
45     public List JavaDoc getMiddles() {
46         return middles;
47     }
48
49     public void setMiddles(List JavaDoc list) {
50         middles = list;
51     }
52
53     public Outer getBackOut() {
54         return backOut;
55     }
56
57     public void setBackOut(Outer outer) {
58         backOut = outer;
59     }
60
61 }
62
Popular Tags