View Javadoc
1   /*
2    * Copyright (C) 2017 uwe
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, either version 3 of the License, or
7    * (at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
16   */
17  package org.sw4j.tool.annotation.jpa.liquibase.v34.entity;
18  
19  import java.io.Serializable;
20  import javax.persistence.Entity;
21  import javax.persistence.Id;
22  
23  /**
24   * This entity is used to test the data type mapping on primitive fields.
25   *
26   * @author Uwe Plonus
27   */
28  @Entity
29  public class FieldPrimitiveEntity implements Serializable {
30  
31      @Id
32      private long id;
33  
34      public long getId() {
35          return id;
36      }
37  
38      public void setId(long id) {
39          this.id = id;
40      }
41  
42      private long primitiveLong;
43  
44      public long getPrimitiveLong() {
45          return primitiveLong;
46      }
47  
48      public void setPrimitiveLong(long primitiveLong) {
49          this.primitiveLong = primitiveLong;
50      }
51  
52      private int primitiveInt;
53  
54      public int getPrimitiveInt() {
55          return primitiveInt;
56      }
57  
58      public void setPrimitiveInt(int primitiveInt) {
59          this.primitiveInt = primitiveInt;
60      }
61  
62      private short primitiveShort;
63  
64      public short getPrimitiveShort() {
65          return primitiveShort;
66      }
67  
68      public void setPrimitiveShort(short primitiveShort) {
69          this.primitiveShort = primitiveShort;
70      }
71  
72      private byte primitiveByte;
73  
74      public byte getPrimitiveByte() {
75          return primitiveByte;
76      }
77  
78      public void setPrimitiveByte(byte primitiveByte) {
79          this.primitiveByte = primitiveByte;
80      }
81  
82      private boolean primitiveBoolean;
83  
84      public boolean getPrimitiveBoolean() {
85          return primitiveBoolean;
86      }
87  
88      public void setPrimitiveBoolean(boolean primitiveBoolean) {
89          this.primitiveBoolean = primitiveBoolean;
90      }
91  
92  }