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 properties.
25   *
26   * @author Uwe Plonus
27   */
28  @Entity
29  public class PropertyObjectEntity implements Serializable {
30  
31      private long id;
32  
33      @Id
34      public long getId() {
35          return id;
36      }
37  
38      public void setId(long id) {
39          this.id = id;
40      }
41  
42      private Long objectLong;
43  
44      public Long getObjectLong() {
45          return objectLong;
46      }
47  
48      public void setObjectLong(Long objectLong) {
49          this.objectLong = objectLong;
50      }
51  
52      private Integer objectInt;
53  
54      public Integer getObjectInt() {
55          return objectInt;
56      }
57  
58      public void setObjectInt(Integer objectInt) {
59          this.objectInt = objectInt;
60      }
61  
62      private Short objectShort;
63  
64      public Short getObjectShort() {
65          return objectShort;
66      }
67  
68      public void setObjectShort(Short objectShort) {
69          this.objectShort = objectShort;
70      }
71  
72      private Byte objectByte;
73  
74      public Byte getObjectByte() {
75          return objectByte;
76      }
77  
78      public void setObjectByte(Byte objectByte) {
79          this.objectByte = objectByte;
80      }
81  
82      private Boolean objectBoolean;
83  
84      public Boolean getObjectBoolean() {
85          return objectBoolean;
86      }
87  
88      public void setObjectBoolean(Boolean objectBoolean) {
89          this.objectBoolean = objectBoolean;
90      }
91  
92  }