1 package ru
.rentdom
.dao
;
3 import java
.io
.Serializable
;
5 /** DAO pattern from "Generic Data Access Objects": http://www.hibernate.org/328.html*/
6 public interface GenericDAO
<T
, ID
extends Serializable
> {
12 List
<T
> findByExample(T exampleInstance
);
14 T
makePersistent(T entity
);
16 void makeTransient(T entity
);