Gerardo Roza 33d0ac5738 * Moved Controller vs RestController article code from spring-mvc-java to spring-mvc-basics
* now using jupiter tests for the tests involved
* fixed error  in involved test
2019-06-17 11:07:47 -03:00

43 lines
697 B
Java

package com.baeldung.model;
public class Book {
private int id;
private String author;
private String title;
public Book() {
}
public Book(int id, String author, String title) {
this.id = id;
this.author = author;
this.title = title;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}