Spring MVC Example

Spring MVC Example Git Source Tree

Root/src/main/java/info/ahlberg/spring/dao/GenericDAO.java

1package info.ahlberg.spring.dao;
2
3import java.io.Serializable;
4import java.util.List;
5
6public interface GenericDAO<T, ID extends Serializable> {
7
8    T loadById(ID id);
9
10    void persist(T entity);
11
12    void update(T entity);
13
14    void delete(T entity);
15
16    List<T> loadAll();
17
18    void flush();
19}
20

Archive Download this file

Branches