mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-05-24 05:31:24 +00:00
87 lines
1.3 KiB
Java
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;
|
|
}
|
|
}
|