Files
swg-api/src/main/java/swg/entity/Account.java
T
2021-02-27 18:00:49 -08:00

80 lines
1.8 KiB
Java

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;
}
}