MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DecimalTypes.java
1 /*
2  Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 package com.mysql.clusterj.jpatest.model;
19 
20 import java.math.BigDecimal;
21 
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25 import javax.persistence.Table;
26 
45 @Entity
46 @Table(name="decimaltypes")
47 public class DecimalTypes implements IdBase {
48 
49  @Id
50  int id;
51  @Column(precision=10,scale=5)
52  BigDecimal decimal_null_hash;
53  @Column(precision=10,scale=5)
54  BigDecimal decimal_null_btree;
55  @Column(precision=10,scale=5)
56  BigDecimal decimal_null_both;
57  @Column(precision=10,scale=5)
58  BigDecimal decimal_null_none;
59 
60  public int getId() {
61  return id;
62  }
63  public void setId(int id) {
64  this.id = id;
65  }
66  public BigDecimal getDecimal_null_hash() {
67  return decimal_null_hash;
68  }
69  public void setDecimal_null_hash(BigDecimal decimalNullHash) {
70  decimal_null_hash = decimalNullHash;
71  }
72  public BigDecimal getDecimal_null_btree() {
73  return decimal_null_btree;
74  }
75  public void setDecimal_null_btree(BigDecimal decimalNullBtree) {
76  decimal_null_btree = decimalNullBtree;
77  }
78  public BigDecimal getDecimal_null_both() {
79  return decimal_null_both;
80  }
81  public void setDecimal_null_both(BigDecimal decimalNullBoth) {
82  decimal_null_both = decimalNullBoth;
83  }
84  public BigDecimal getDecimal_null_none() {
85  return decimal_null_none;
86  }
87  public void setDecimal_null_none(BigDecimal decimalNullNone) {
88  decimal_null_none = decimalNullNone;
89  }
90 
91 }