package dk.hansen; import java.io.Serializable; /* * This a bean - and also a Value - or Data Transfer Object */ public class Book implements Serializable { private String id; private String title; private String author; private int year; public Book() { } public Book(String id, String title, String author, int year) { setId(id); setTitle(title); setAuthor(author); setYear(year); } public String getId() { return id; } public void setId(String 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 int getYear() { return year; } public void setYear(int year) { this.year = year; } }