TF-Marriage/src/main/java/com/lenis0012/bukkit/marriage2/internal/data/models/LocationModel.java
2016-06-13 21:39:03 +02:00

87 lines
1.3 KiB
Java

package com.lenis0012.bukkit.marriage2.internal.data.models;
import javax.persistence.*;
@Entity
@Table(name="marriage_players")
public class LocationModel {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(unique = true, updatable = false)
private int id;
@Column
private String world;
@Column
private double x;
@Column
private double y;
@Column
private double z;
@Column
private float yaw;
@Column
private float pitch;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getWorld() {
return world;
}
public void setWorld(String world) {
this.world = world;
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
public double getZ() {
return z;
}
public void setZ(double z) {
this.z = z;
}
public float getYaw() {
return yaw;
}
public void setYaw(float yaw) {
this.yaw = yaw;
}
public float getPitch() {
return pitch;
}
public void setPitch(float pitch) {
this.pitch = pitch;
}
}