Skip to content

Commit e759f14

Browse files
committed
fix(refactor): changes attribute names to match DB schema
1 parent b5b4018 commit e759f14

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/ao/com/academy/libraryapi/domain

1 file changed

+3
-3
lines changed

src/main/java/ao/com/academy/libraryapi/domain/Book.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public class Book {
2222
@Id
2323
@GeneratedValue(strategy=GenerationType.IDENTITY)
2424
@Column(name="id")
25-
private Long bookId;
25+
private Long id;
2626

2727
@Column(name="name")
28-
private String bookName;
28+
private String name;
2929

3030
@Column(name="author")
31-
private String bookAuthor;
31+
private String author;
3232

3333
@Column(name="releaseDate")
3434
private String releaseDate;

0 commit comments

Comments
 (0)