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