forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFooComponent.cs
184 lines (155 loc) · 3.19 KB
/
FooComponent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
using System;
namespace NHibernate.DomainModel
{
/// <summary>
/// POJO for FooComponent
/// </summary>
/// <remark>
/// This class is autogenerated
/// </remark>
[Serializable]
public class FooComponent
{
#region Fields
/// <summary>
/// Holder for name
/// </summary>
private String _name;
/// <summary>
/// Holder for count
/// </summary>
private Int32 _count;
private DateTime[] _importantDates;
private FooComponent _subcomponent;
private Fee _fee = new Fee();
private GlarchProxy _glarch;
private FooProxy _parent;
private Baz _baz;
#endregion
#region Constructors
/// <summary>
/// Default constructor for class FooComponent
/// </summary>
public FooComponent()
{
}
/// <summary>
/// Constructor for class FooComponent
/// </summary>
/// <param name="name">Initial name value</param>
/// <param name="count">Initial count value</param>
public FooComponent(String name, Int32 count)
{
_name = name;
_count = count;
}
public FooComponent(String name, int count, DateTime[] dates, FooComponent subcomponent)
{
_name = name;
_count = count;
_importantDates = dates;
_subcomponent = subcomponent;
}
public FooComponent(String name, int count, DateTime[] dates, FooComponent subcomponent, Fee fee)
{
_name = name;
_count = count;
_importantDates = dates;
_subcomponent = subcomponent;
_fee = fee;
}
#endregion
#region Properties
/// <summary>
/// Get/set for name
/// </summary>
public String Name
{
get { return _name; }
set { _name = value; }
}
/// <summary>
/// Get/set for count
/// </summary>
public Int32 Count
{
get { return _count; }
set { _count = value; }
}
public int NotMapped { get; set; }
public DateTime[] ImportantDates
{
get { return _importantDates; }
set { _importantDates = value; }
}
public FooComponent Subcomponent
{
get { return _subcomponent; }
set { _subcomponent = value; }
}
private String NullString
{
get { return null; }
set
{
if (value != null)
throw new ArgumentException("null component property");
}
}
public Fee Fee
{
get { return _fee; }
set { this._fee = value; }
}
public GlarchProxy Glarch
{
get { return _glarch; }
set { _glarch = value; }
}
public FooProxy Parent
{
get { return _parent; }
set
{
if (_parent != null && value == null)
throw new ArgumentNullException("null parent set");
_parent = value;
}
}
public Baz Baz
{
get { return _baz; }
set { _baz = value; }
}
#endregion
#region System.Object Members
public override bool Equals(object obj)
{
FooComponent fc = (FooComponent) obj;
return Count == fc.Count;
}
public override int GetHashCode()
{
return Count;
}
public override string ToString()
{
String result = "FooComponent: " + Name + "=" + Count;
result += "; dates=[";
if (_importantDates != null)
{
for (int i = 0; i < _importantDates.Length; i++)
{
result += (i == 0 ? "" : ", ") + _importantDates[i];
}
}
result += "]";
if (Subcomponent != null)
{
result += " (" + Subcomponent + ")";
}
return result;
}
#endregion
}
}