Skip to content

Commit 571e7fa

Browse files
committed
No need to add @column annotation when its name is the same with table field
1 parent efcf605 commit 571e7fa

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Diff for: kanban-app/src/main/java/com/wkrzywiec/medium/kanban/model/Kanban.java

-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ public class Kanban {
2323

2424
@Id
2525
@GeneratedValue(strategy = GenerationType.IDENTITY)
26-
@Column(name = "id")
2726
@ApiModelProperty(position = 1)
2827
private Long id;
2928

30-
@Column(name = "title")
3129
@ApiModelProperty(position = 2)
3230
private String title;
3331

Diff for: kanban-app/src/main/java/com/wkrzywiec/medium/kanban/model/Task.java

-4
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,15 @@ public class Task {
1919

2020
@Id
2121
@GeneratedValue(strategy = GenerationType.IDENTITY)
22-
@Column(name = "id")
2322
@ApiModelProperty(position = 1)
2423
private Long id;
2524

26-
@Column(name = "title")
2725
@ApiModelProperty(position = 2)
2826
private String title;
2927

30-
@Column(name = "description")
3128
@ApiModelProperty(position = 3)
3229
private String description;
3330

34-
@Column(name = "color")
3531
@ApiModelProperty(position = 4)
3632
private String color;
3733

0 commit comments

Comments
 (0)