001: /***********************************************************************************************************************************
002: **
003: ** Research In Motion. Do not reproduce without permission in writing.
004: **
005: ** Copyright (c) 2006 Research In Motion.
006: ** All rights reserved.
007: **
008: ************************************************************************************************************************************
009: */package org.jboss.ejb3.test.timestampentity.entity;
010:
011: import javax.persistence.AttributeOverride;
012: import javax.persistence.AttributeOverrides;
013: import javax.persistence.Column;
014: import javax.persistence.EmbeddedId;
015: import javax.persistence.Entity;
016: import javax.persistence.Table;
017: import javax.persistence.Version;
018: import java.util.Date;
019:
020: /***********************************************************************************************************************************
021: **
022: ** This is a entity bean primary key class for the BASAuthenticationCredentials table...Generated 4-Jan-2007 2:58:35 PM
023: ** by Hibernate Tools 3.2.0.beta7
024: **
025: ** @author jgrills
026: ** @version T.B.D
027: **
028: ************************************************************************************************************************************
029: */
030: @Entity
031: @Table(name="Table1Integer")
032: public class Table1IntegerEntity implements java.io.Serializable {
033:
034: /***********************************************************************************************************************************
035: **
036: ** The primary key class
037: **
038: ************************************************************************************************************************************
039: */
040: private Table1Key _table1Key;
041:
042: /***********************************************************************************************************************************
043: **
044: ** The field1 attribute
045: **
046: ************************************************************************************************************************************
047: */
048: private String _field1;
049:
050: /***********************************************************************************************************************************
051: **
052: ** The fiedl2 attribute
053: **
054: ************************************************************************************************************************************
055: */
056: private String _field2;
057:
058: /***********************************************************************************************************************************
059: **
060: ** The field3 attribute
061: **
062: ************************************************************************************************************************************
063: */
064: private Date _field3;
065:
066: /***********************************************************************************************************************************
067: **
068: ** The versionNumber attribute
069: **
070: ************************************************************************************************************************************
071: */
072: private int _versionNumber;
073:
074: /***********************************************************************************************************************************
075: **
076: ** The default constructor for an Table1IntegerEntity
077: **
078: ************************************************************************************************************************************
079: */
080: public Table1IntegerEntity() {
081:
082: }
083:
084: /***********************************************************************************************************************************
085: **
086: ** The minimal constructor for an Table1IntegerEntity
087: **
088: ** @param table1Key the primary key class
089: ** @param field1 the field1
090: ** @param field2 the field2
091: **
092: ************************************************************************************************************************************
093: */
094: public Table1IntegerEntity(Table1Key table1Key, String field1,
095: String field2) {
096:
097: _table1Key = table1Key;
098: _field1 = field1;
099: _field2 = field2;
100: }
101:
102: /***********************************************************************************************************************************
103: **
104: ** The full constructor for an Table1IntegerEntity
105: **
106: ** @param table1Key the primary key class
107: ** @param field1 the field1
108: ** @param field2 the field2
109: ** @param field3 the field3
110: **
111: ************************************************************************************************************************************
112: */
113: public Table1IntegerEntity(Table1Key table1Key, String field1,
114: String field2, Date field3) {
115:
116: _table1Key = table1Key;
117: _field1 = field1;
118: _field2 = field2;
119: _field3 = field3;
120: }
121:
122: /***********************************************************************************************************************************
123: **
124: ** The get method for the primary key class
125: **
126: ** @return the primary key
127: **
128: ************************************************************************************************************************************
129: */
130: @EmbeddedId
131: @AttributeOverrides({@AttributeOverride(name="keyfield1",column=@Column(name="Keyfield1")),@AttributeOverride(name="keyfield2",column=@Column(name="Keyfield2")),@AttributeOverride(name="keyfield3",column=@Column(name="Keyfield3"))})
132: public Table1Key getId() {
133:
134: return _table1Key;
135: }
136:
137: /***********************************************************************************************************************************
138: **
139: ** The set method for the primary key class
140: **
141: ** @param table1Key the primary key class
142: **
143: ************************************************************************************************************************************
144: */
145: public void setId(Table1Key table1Key) {
146:
147: _table1Key = table1Key;
148: }
149:
150: /***********************************************************************************************************************************
151: **
152: ** The get method for the field1
153: **
154: ** @return the field1
155: **
156: ************************************************************************************************************************************
157: */
158: public String getField1() {
159:
160: return _field1;
161: }
162:
163: /***********************************************************************************************************************************
164: **
165: ** The set method for the field1
166: **
167: ** @param field1 the field1
168: **
169: ************************************************************************************************************************************
170: */
171: public void setField1(String field1) {
172:
173: _field1 = field1;
174: }
175:
176: /***********************************************************************************************************************************
177: **
178: ** The get method for the field2
179: **
180: ** @return the field2
181: **
182: ************************************************************************************************************************************
183: */
184: public String getField2() {
185:
186: return _field2;
187: }
188:
189: /***********************************************************************************************************************************
190: **
191: ** The set method for the field2
192: **
193: ** @param field2 the field2
194: **
195: ************************************************************************************************************************************
196: */
197: public void setField2(String field2) {
198:
199: _field2 = field2;
200: }
201:
202: /***********************************************************************************************************************************
203: **
204: ** The get method for the field3
205: **
206: ** @return the field3
207: **
208: ************************************************************************************************************************************
209: */
210: public Date getField3() {
211:
212: return _field3;
213: }
214:
215: /***********************************************************************************************************************************
216: **
217: ** The set method for the field3
218: **
219: ** @param field3 the field3
220: **
221: ************************************************************************************************************************************
222: */
223: public void setField3(Date field3) {
224:
225: _field3 = field3;
226: }
227:
228: /***********************************************************************************************************************************
229: **
230: ** The get method for the lurnum attribute
231: **
232: ** @return the lurnum attribute
233: **
234: ************************************************************************************************************************************
235: */
236: @Version
237: public int getVersionNumber() {
238:
239: return _versionNumber;
240: }
241:
242: /***********************************************************************************************************************************
243: **
244: ** The set method for the versionNumber attribute
245: **
246: ** @param versionNumber the versionNumber attribute
247: **
248: ************************************************************************************************************************************
249: */
250: public void setVersionNumber(int versionNumber) {
251:
252: _versionNumber = versionNumber;
253: }
254: }
|