1
- using System ;
1
+ using System ;
2
2
using System . Collections ;
3
3
using System . Collections . Generic ;
4
-
5
- namespace NHibernate . DomainModel
6
- {
7
- public class Container
8
- {
9
- public sealed class ContainerInnerClass
10
- {
11
- private Simple _simple ;
12
- private string _name ;
13
- private One _one ;
14
- private Many _many ;
15
- private int _count ;
16
-
17
- public Simple Simple
18
- {
19
- get { return _simple ; }
20
- set { _simple = value ; }
21
- }
22
-
23
- public string Name
24
- {
25
- get { return _name ; }
26
- set { _name = value ; }
27
- }
28
-
29
- public One One
30
- {
31
- get { return _one ; }
32
- set { _one = value ; }
33
- }
34
-
35
- public Many Many
36
- {
37
- get { return _many ; }
38
- set { _many = value ; }
39
- }
40
-
41
- public int Count
42
- {
43
- get { return _count ; }
44
- set { _count = value ; }
45
- }
46
-
47
- #region System.Object Members
48
-
49
- public override string ToString ( )
50
- {
51
- return _name + " = " + _simple . Count
52
- + "/" + ( _one == null ? "nil" : _one . Key . ToString ( ) )
53
- + "/" + ( _many == null ? "nii" : _many . Key . ToString ( ) ) ;
54
- }
55
-
56
- #endregion
57
- }
58
-
59
- public sealed class Ternary
60
- {
61
- private string _name ;
62
- private Foo _foo ;
63
- private Glarch _glarch ;
64
-
65
- public string Name
66
- {
67
- get { return _name ; }
68
- set { _name = value ; }
69
- }
70
-
71
- public Foo Foo
72
- {
73
- get { return _foo ; }
74
- set { _foo = value ; }
75
- }
76
-
77
- public Glarch Glarch
78
- {
79
- get { return _glarch ; }
80
- set { _glarch = value ; }
81
- }
82
- }
83
-
84
-
85
- private IList _oneToMany ;
86
- private IList _components ;
87
- private IList _manyToMany ;
88
- // <set> mapping
89
- private ISet < ContainerInnerClass > _composites ;
90
- private IList _cascades ;
91
- private long _id ;
92
- private IList _bag ;
93
- private IList _lazyBag = new ArrayList ( ) ;
94
- private IDictionary _ternaryMap ;
95
- //<set> mapping
96
- private ISet < Ternary > _ternarySet ;
97
-
98
-
99
- public virtual IList OneToMany
100
- {
101
- get { return _oneToMany ; }
102
- set { _oneToMany = value ; }
103
- }
104
-
105
- public virtual IList ManyToMany
106
- {
107
- get { return _manyToMany ; }
108
- set { _manyToMany = value ; }
109
- }
110
-
111
- public virtual IList Components
112
- {
113
- get { return _components ; }
114
- set { _components = value ; }
115
- }
116
-
117
- public virtual ISet < ContainerInnerClass > Composites
118
- {
119
- get { return _composites ; }
120
- set { _composites = value ; }
121
- }
122
-
123
- public virtual IList Cascades
124
- {
125
- get { return _cascades ; }
126
- set { _cascades = value ; }
127
- }
128
-
129
- public virtual long Id
130
- {
131
- get { return _id ; }
132
- set { _id = value ; }
133
- }
134
-
135
- public virtual IList Bag
136
- {
137
- get { return _bag ; }
138
- set { _bag = value ; }
139
- }
140
-
141
- public virtual IList LazyBag
142
- {
143
- get { return _lazyBag ; }
144
- set { _lazyBag = value ; }
145
- }
146
-
147
- public virtual IDictionary TernaryMap
148
- {
149
- get { return _ternaryMap ; }
150
- set { _ternaryMap = value ; }
151
- }
152
-
153
- public virtual ISet < Ternary > TernarySet
154
- {
155
- get { return _ternarySet ; }
156
- set { _ternarySet = value ; }
157
- }
158
- }
4
+
5
+ namespace NHibernate . DomainModel
6
+ {
7
+ public class Container
8
+ {
9
+ public sealed class ContainerInnerClass
10
+ {
11
+ private Simple _simple ;
12
+ private string _name ;
13
+ private One _one ;
14
+ private Many _many ;
15
+ private int _count ;
16
+
17
+ public Simple Simple
18
+ {
19
+ get { return _simple ; }
20
+ set { _simple = value ; }
21
+ }
22
+
23
+ public string Name
24
+ {
25
+ get { return _name ; }
26
+ set { _name = value ; }
27
+ }
28
+
29
+ public One One
30
+ {
31
+ get { return _one ; }
32
+ set { _one = value ; }
33
+ }
34
+
35
+ public Many Many
36
+ {
37
+ get { return _many ; }
38
+ set { _many = value ; }
39
+ }
40
+
41
+ public int Count
42
+ {
43
+ get { return _count ; }
44
+ set { _count = value ; }
45
+ }
46
+
47
+ #region System.Object Members
48
+
49
+ public override string ToString ( )
50
+ {
51
+ return _name + " = " + _simple . Count
52
+ + "/" + ( _one == null ? "nil" : _one . Key . ToString ( ) )
53
+ + "/" + ( _many == null ? "nii" : _many . Key . ToString ( ) ) ;
54
+ }
55
+
56
+ #endregion
57
+ }
58
+
59
+ public sealed class Ternary
60
+ {
61
+ private string _name ;
62
+ private Foo _foo ;
63
+ private Glarch _glarch ;
64
+
65
+ public string Name
66
+ {
67
+ get { return _name ; }
68
+ set { _name = value ; }
69
+ }
70
+
71
+ public Foo Foo
72
+ {
73
+ get { return _foo ; }
74
+ set { _foo = value ; }
75
+ }
76
+
77
+ public Glarch Glarch
78
+ {
79
+ get { return _glarch ; }
80
+ set { _glarch = value ; }
81
+ }
82
+ }
83
+
84
+
85
+ private IList _oneToMany ;
86
+ private IList _components ;
87
+ private IList _manyToMany ;
88
+ // <set> mapping
89
+ private ISet < ContainerInnerClass > _composites ;
90
+ private IList _cascades ;
91
+ private long _id ;
92
+ private IList _bag ;
93
+ private IList _lazyBag = new ArrayList ( ) ;
94
+ private IDictionary _ternaryMap ;
95
+ //<set> mapping
96
+ private ISet < Ternary > _ternarySet ;
97
+
98
+
99
+ public virtual IList OneToMany
100
+ {
101
+ get { return _oneToMany ; }
102
+ set { _oneToMany = value ; }
103
+ }
104
+
105
+ public virtual IList ManyToMany
106
+ {
107
+ get { return _manyToMany ; }
108
+ set { _manyToMany = value ; }
109
+ }
110
+
111
+ public virtual IList Components
112
+ {
113
+ get { return _components ; }
114
+ set { _components = value ; }
115
+ }
116
+
117
+ public virtual ISet < ContainerInnerClass > Composites
118
+ {
119
+ get { return _composites ; }
120
+ set { _composites = value ; }
121
+ }
122
+
123
+ public virtual IList Cascades
124
+ {
125
+ get { return _cascades ; }
126
+ set { _cascades = value ; }
127
+ }
128
+
129
+ public virtual long Id
130
+ {
131
+ get { return _id ; }
132
+ set { _id = value ; }
133
+ }
134
+
135
+ public virtual IList Bag
136
+ {
137
+ get { return _bag ; }
138
+ set { _bag = value ; }
139
+ }
140
+
141
+ public virtual IList LazyBag
142
+ {
143
+ get { return _lazyBag ; }
144
+ set { _lazyBag = value ; }
145
+ }
146
+
147
+ public virtual IDictionary TernaryMap
148
+ {
149
+ get { return _ternaryMap ; }
150
+ set { _ternaryMap = value ; }
151
+ }
152
+
153
+ public virtual ISet < Ternary > TernarySet
154
+ {
155
+ get { return _ternarySet ; }
156
+ set { _ternarySet = value ; }
157
+ }
158
+ }
159
159
}
0 commit comments