/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChestBean.java
ViewVC logotype

Annotation of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChestBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1785 - (hide annotations) (download)
Fri Apr 6 09:51:01 2012 UTC (12 years, 1 month ago) by torben
File size: 1194 byte(s)
Better handling of double chests (now a doublechest only uses one DB row)
1 torben 1773 package dk.thoerup.bukkit.hoeruputils;
2    
3    
4     import javax.persistence.Entity;
5     import javax.persistence.GeneratedValue;
6     import javax.persistence.Id;
7    
8    
9    
10     @Entity
11     public class SnitchingChestBean {
12     @Id
13     @GeneratedValue
14     int id;
15    
16     String owner;
17     String description;
18    
19     String world;
20     int x;
21     int y;
22     int z;
23    
24 torben 1785 boolean doublechest = false;
25 torben 1773
26 torben 1785
27 torben 1773
28    
29 torben 1785
30    
31 torben 1773 public String getOwner() {
32     return owner;
33     }
34     public void setOwner(String owner) {
35     this.owner = owner;
36     }
37     public String getDescription() {
38     return description;
39     }
40     public void setDescription(String description) {
41     this.description = description;
42     }
43    
44     public int getId() {
45     return id;
46     }
47    
48     public void setId(int id) {
49     this.id = id;
50     }
51    
52     public String getWorld() {
53     return world;
54     }
55    
56     public void setWorld(String world) {
57     this.world = world;
58     }
59    
60     public int getX() {
61     return x;
62     }
63    
64     public void setX(int x) {
65     this.x = x;
66     }
67    
68     public int getY() {
69     return y;
70     }
71    
72     public void setY(int y) {
73     this.y = y;
74     }
75    
76     public int getZ() {
77     return z;
78     }
79    
80     public void setZ(int z) {
81     this.z = z;
82     }
83 torben 1785 public boolean isDoublechest() {
84     return doublechest;
85     }
86     public void setDoublechest(boolean doublechest) {
87     this.doublechest = doublechest;
88     }
89    
90 torben 1773
91     }

  ViewVC Help
Powered by ViewVC 1.1.20