docs: update version number

This commit is contained in:
Ilkka Seppälä
2024-05-23 12:44:12 +03:00
parent d6d2a76c1f
commit c9c73490c8
2 changed files with 67 additions and 81 deletions
@@ -24,19 +24,21 @@
*/
package com.iluwatar.versionnumber;
import lombok.Getter;
import lombok.Setter;
/**
* Model class for Book entity.
*/
@Getter
@Setter
public class Book {
private long id;
private String title = "";
private String author = "";
private long version = 0; // version number
public Book() {
}
public Book() {}
/**
* We need this copy constructor to copy book representation in {@link BookRepository}.
@@ -47,36 +49,4 @@ public class Book {
this.author = book.author;
this.version = book.version;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public long getVersion() {
return version;
}
public void setVersion(long version) {
this.version = version;
}
}