From 18879fd4911d100f2b5b1b2b339a410c41f215b7 Mon Sep 17 00:00:00 2001 From: michaelin007 Date: Mon, 29 Jan 2024 04:03:29 +0000 Subject: [PATCH] https://jira.baeldung.com/browse/BAEL-5116 --- .../main/java/com/baeldung/r2dbc/model/Player.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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