|
|
@ -37,7 +37,7 @@ CREATE TABLE `light_bans` ( |
|
|
|
public class Ban { |
|
|
|
@Id |
|
|
|
@Column(name = "id") |
|
|
|
private int id; |
|
|
|
private Long id; |
|
|
|
@Column(name = "steam_id", length = 32) |
|
|
|
private String steam_id; |
|
|
|
@Column(name = "account_id") |
|
|
@ -55,6 +55,7 @@ public class Ban { |
|
|
|
@Column(name = "banned_by_id") |
|
|
|
private String banned_by_id; |
|
|
|
@Column(name = "ip", length = 15) |
|
|
|
@JsonIgnore |
|
|
|
private String ip; |
|
|
|
@Column(name = "timestamp") |
|
|
|
private Timestamp timestamp; |
|
|
@ -76,7 +77,7 @@ public class Ban { |
|
|
|
AdminInfo unbanned_admin_info; |
|
|
|
|
|
|
|
public Ban(Object[] obj) { |
|
|
|
id = (int) obj[0]; |
|
|
|
id = (long) obj[0]; |
|
|
|
steam_id = (String) obj[1]; |
|
|
|
account_id = (Long) obj[2]; |
|
|
|
player_name = (String) obj[3]; |
|
|
@ -94,7 +95,7 @@ public class Ban { |
|
|
|
} |
|
|
|
|
|
|
|
public Ban(ResultSet resultSet) throws SQLException { |
|
|
|
id = resultSet.getInt("id"); |
|
|
|
id = resultSet.getLong("id"); |
|
|
|
steam_id = resultSet.getString("steam_id"); |
|
|
|
account_id = resultSet.getLong("account_id"); |
|
|
|
player_name = resultSet.getString("player_name"); |
|
|
|