package dk.hansen; import java.io.Serializable; /* * This a bean - and also a Value - or Data Transfer Object */ public class Vhs implements Serializable { private String id; private int year; private String title; private int tapeLength; public Vhs() { } public Vhs(String id, int year, String title, int tapeLength) { setId(id); setYear(year); setTitle(title); setTapeLength(tapeLength); } public String getId() { return id; } public void setId(String id) { this.id = id; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public int getTapeLength() { return tapeLength; } public void setTapeLength(int tapeLength) { this.tapeLength = tapeLength; } }