diff --git a/spring-reactive-modules/spring-reactive-data/src/main/java/com/baeldung/r2dbc/model/Player.java b/spring-reactive-modules/spring-reactive-data/src/main/java/com/baeldung/r2dbc/model/Player.java index c66b4bc469..1e28cb3d07 100644 --- a/spring-reactive-modules/spring-reactive-data/src/main/java/com/baeldung/r2dbc/model/Player.java +++ b/spring-reactive-modules/spring-reactive-data/src/main/java/com/baeldung/r2dbc/model/Player.java @@ -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; - } } \ No newline at end of file