~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/hql/ComponentContainer.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.hibernate.test.hql;
 
2
 
 
3
/**
 
4
 * {@inheritDoc}
 
5
 *
 
6
 * @author Steve Ebersole
 
7
 */
 
8
public class ComponentContainer {
 
9
 
 
10
        private Long id;
 
11
        private ComponentContainer.Address address;
 
12
 
 
13
        public Long getId() {
 
14
                return id;
 
15
        }
 
16
 
 
17
        public void setId(Long id) {
 
18
                this.id = id;
 
19
        }
 
20
 
 
21
        public ComponentContainer.Address getAddress() {
 
22
                return address;
 
23
        }
 
24
 
 
25
        public void setAddress(ComponentContainer.Address address) {
 
26
                this.address = address;
 
27
        }
 
28
 
 
29
        public static class Address {
 
30
                private String street;
 
31
                private String city;
 
32
                private String state;
 
33
                private ComponentContainer.Address.Zip zip;
 
34
 
 
35
                public Address() {
 
36
                }
 
37
 
 
38
                public Address(String street, String city, String state, ComponentContainer.Address.Zip zip) {
 
39
                        this.street = street;
 
40
                        this.city = city;
 
41
                        this.state = state;
 
42
                        this.zip = zip;
 
43
                }
 
44
 
 
45
                public String getStreet() {
 
46
                        return street;
 
47
                }
 
48
 
 
49
                public void setStreet(String street) {
 
50
                        this.street = street;
 
51
                }
 
52
 
 
53
                public String getCity() {
 
54
                        return city;
 
55
                }
 
56
 
 
57
                public void setCity(String city) {
 
58
                        this.city = city;
 
59
                }
 
60
 
 
61
                public String getState() {
 
62
                        return state;
 
63
                }
 
64
 
 
65
                public void setState(String state) {
 
66
                        this.state = state;
 
67
                }
 
68
 
 
69
                public ComponentContainer.Address.Zip getZip() {
 
70
                        return zip;
 
71
                }
 
72
 
 
73
                public void setZip(ComponentContainer.Address.Zip zip) {
 
74
                        this.zip = zip;
 
75
                }
 
76
 
 
77
                public static class Zip {
 
78
                        private int code;
 
79
                        private int plus4;
 
80
 
 
81
                        public Zip() {
 
82
                        }
 
83
 
 
84
                        public Zip(int code, int plus4) {
 
85
                                this.code = code;
 
86
                                this.plus4 = plus4;
 
87
                        }
 
88
 
 
89
                        public int getCode() {
 
90
                                return code;
 
91
                        }
 
92
 
 
93
                        public void setCode(int code) {
 
94
                                this.code = code;
 
95
                        }
 
96
 
 
97
                        public int getPlus4() {
 
98
                                return plus4;
 
99
                        }
 
100
 
 
101
                        public void setPlus4(int plus4) {
 
102
                                this.plus4 = plus4;
 
103
                        }
 
104
                }
 
105
        }
 
106
 
 
107
}