Spring cache: custom key generator (#4166)

This commit is contained in:
Felipe Santiago Corro
2018-05-05 02:40:37 -03:00
committed by maibin
parent 258d5c09f0
commit e22750ffe1
4 changed files with 76 additions and 0 deletions

View File

@@ -6,6 +6,15 @@ public class Book {
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;
}