-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.java
More file actions
44 lines (35 loc) · 1009 Bytes
/
Book.java
File metadata and controls
44 lines (35 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.example.springboot_test.api.model;
public class Book {
private String title;
private String author;
private String synopsys;
private String releaseDate;
private Integer id;
public Book(String title, String author, String synopsys, String releaseDate) {
this.title = title;
this.author = author;
this.synopsys = synopsys;
this.releaseDate = releaseDate;
}
public Integer getId() {
return this.id;
}
public String getTitle() {
return this.title;
}
public String getAuthor() {
return this.author;
}
public String getSynopsys() {
return this.synopsys;
}
public String getReleaseDate() {
return this.releaseDate;
}
public void edit(Book book) {
this.title = book.title;
this.author = book.author;
this.synopsys = book.synopsys;
this.releaseDate = book.releaseDate;
}
}