Починил БД и лабу :)
This commit is contained in:
parent
a4347f5256
commit
4f877d117a
@ -4,7 +4,7 @@ import javax.persistence.*;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class Level {
|
public class TankLevel {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
@ -12,10 +12,10 @@ public class Level {
|
|||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
private int level;
|
private int level;
|
||||||
|
|
||||||
public Level() {
|
public TankLevel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Level(int level) {
|
public TankLevel(int level) {
|
||||||
this.level = level;
|
this.level = level;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ public class Level {
|
|||||||
if (o == null || getClass() != o.getClass())
|
if (o == null || getClass() != o.getClass())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Level level = (Level) o;
|
TankLevel level = (TankLevel) o;
|
||||||
|
|
||||||
return Objects.equals(id, level.id);
|
return Objects.equals(id, level.id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user