michaelin007 2024-01-29 04:03:29 +00:00
parent f0b95c51c4
commit 18879fd491
1 changed files with 2 additions and 9 deletions

View File

@ -7,19 +7,12 @@ import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table
public class Player {
@Id
Integer id;
String name;
Integer age;
public Player() {
}
public Player(Integer id, String name, Integer age) {
this.id = id;
this.name = name;
this.age = age;
}
}