This commit is contained in:
parent
f0b95c51c4
commit
18879fd491
@ -7,19 +7,12 @@ import org.springframework.data.annotation.Id;
|
|||||||
import org.springframework.data.relational.core.mapping.Table;
|
import org.springframework.data.relational.core.mapping.Table;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
@Table
|
@Table
|
||||||
public class Player {
|
public class Player {
|
||||||
@Id
|
@Id
|
||||||
Integer id;
|
Integer id;
|
||||||
String name;
|
String name;
|
||||||
Integer age;
|
Integer age;
|
||||||
|
|
||||||
public Player() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public Player(Integer id, String name, Integer age) {
|
|
||||||
this.id = id;
|
|
||||||
this.name = name;
|
|
||||||
this.age = age;
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user