MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TimestampAsUtilDateTypes.java
1 /*
2  Copyright 2010 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 package com.mysql.clusterj.jpatest.model;
20 
21 import java.util.Date;
22 
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.Id;
26 import javax.persistence.Table;
27 
46 @Entity
47 @Table(name="datetimetypes")
48 public class TimestampAsUtilDateTypes implements IdBase {
49 
50  private int id;
51  private Date datetime_not_null_hash;
52  private Date datetime_not_null_btree;
53  private Date datetime_not_null_both;
54  private Date datetime_not_null_none;
55 
56  @Id
57  public int getId() {
58  return id;
59  }
60  public void setId(int id) {
61  this.id = id;
62  }
63 
64  // Timestamp
65  @Column(name="datetime_not_null_hash")
66  public Date getTimestamp_not_null_hash() {
67  return datetime_not_null_hash;
68  }
69  public void setTimestamp_not_null_hash(Date value) {
70  this.datetime_not_null_hash = value;
71  }
72 
73  @Column(name="datetime_not_null_btree")
74  public Date getTimestamp_not_null_btree() {
75  return datetime_not_null_btree;
76  }
77  public void setTimestamp_not_null_btree(Date value) {
78  this.datetime_not_null_btree = value;
79  }
80 
81  @Column(name="datetime_not_null_both")
82  public Date getTimestamp_not_null_both() {
83  return datetime_not_null_both;
84  }
85  public void setTimestamp_not_null_both(Date value) {
86  this.datetime_not_null_both = value;
87  }
88 
89  @Column(name="datetime_not_null_none")
90  public Date getTimestamp_not_null_none() {
91  return datetime_not_null_none;
92  }
93  public void setTimestamp_not_null_none(Date value) {
94  this.datetime_not_null_none = value;
95  }
96 
97 }