mirror of
https://github.com/cekis/swg-api
synced 2026-07-30 20:16:14 -04:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
package swg.entity;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
@Entity
|
||||
@NamedQuery(name = "Account.findByStationId", query = "SELECT a FROM Account a WHERE a.stationId = ?1")
|
||||
@Table(name = "ACCOUNTS")
|
||||
public class Account {
|
||||
@Column(name = "STATION_ID")
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private Long stationId;
|
||||
|
||||
@Column(name = "NUM_LOTS", nullable = true, length = 38)
|
||||
private Long numLots;
|
||||
|
||||
@Column(name = "IS_OUTCAST", nullable = true, length = 1)
|
||||
private Character outcast;
|
||||
|
||||
@Column(name = "CHEATER_LEVEL", nullable = true, length = 38)
|
||||
private Long cheaterLevel;
|
||||
|
||||
@Column(name = "MAX_LOTS_ADJUSTMENT", nullable = true, length = 38)
|
||||
private Long maxLotsAdjustment;
|
||||
|
||||
@Column(name = "HOUSE_ID", nullable = true, length = 38)
|
||||
private Long houseId;
|
||||
|
||||
protected Account() {
|
||||
}
|
||||
|
||||
public Long getStationId() {
|
||||
return stationId;
|
||||
}
|
||||
|
||||
public void setStationId(Long stationId) {
|
||||
this.stationId = stationId;
|
||||
}
|
||||
|
||||
public Long getNumLots() {
|
||||
return numLots;
|
||||
}
|
||||
|
||||
public void setNumLots(Long numLots) {
|
||||
this.numLots = numLots;
|
||||
}
|
||||
|
||||
public Character getOutcast() {
|
||||
return outcast;
|
||||
}
|
||||
|
||||
public void setOutcast(Character outcast) {
|
||||
this.outcast = outcast;
|
||||
}
|
||||
|
||||
public Long getCheaterLevel() {
|
||||
return cheaterLevel;
|
||||
}
|
||||
|
||||
public void setCheaterLevel(Long cheaterLevel) {
|
||||
this.cheaterLevel = cheaterLevel;
|
||||
}
|
||||
|
||||
public Long getMaxLotsAdjustment() {
|
||||
return maxLotsAdjustment;
|
||||
}
|
||||
|
||||
public void setMaxLotsAdjustment(Long maxLotsAdjustment) {
|
||||
this.maxLotsAdjustment = maxLotsAdjustment;
|
||||
}
|
||||
|
||||
public Long getHouseId() {
|
||||
return houseId;
|
||||
}
|
||||
|
||||
public void setHouseId(Long houseId) {
|
||||
this.houseId = houseId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user