c2b4728827caf70e3535dc2e25889f69b2b7d193
[utils] / test / enterprise / src / test / java / org / wamblee / support / persistence / MyEntity.java
1 package org.wamblee.support.persistence;
2
3 import javax.persistence.Entity;
4 import javax.persistence.GeneratedValue;
5 import javax.persistence.GenerationType;
6 import javax.persistence.Id;
7 import javax.persistence.Table;
8
9 @Entity
10 @Table(name = "XYZ_MYENTITY")
11 public class MyEntity {
12
13         @Id
14         @GeneratedValue(strategy = GenerationType.AUTO)
15         private Long id; 
16         
17         private String sleuteltje; 
18         private String value; 
19         
20         
21         public MyEntity() { 
22            // Empty     
23         }
24         
25         public MyEntity(String aKey, String aValue) { 
26                 sleuteltje = aKey; 
27                 value = aValue; 
28         }
29         
30         public String getKey() {
31                 return sleuteltje;
32         }
33         
34         public String getValue() {
35                 return value;
36         }
37
38         
39 }