Java Generics. What benefit in my case?
问题 At this moment I start work on small web application based on MVC. Now I try implement main classes for Model layout using DAO pattern. So, first of all I create two entity classes (for example): Author and Book: package myProject.model.entity; import java.io.Serializable; public class Author implements Serializable { private static final long serialVersionUID = 7177014660621405534L; private long id; private String firstName; private String lastName; public Author() { } // getter and setter