mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-21 04:24:12 +00:00
Changed package naming across all examples.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.iluwatar.servicelayer.common;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Dao interface.
|
||||
*
|
||||
* @param <E>
|
||||
*
|
||||
*/
|
||||
public interface Dao<E extends BaseEntity> {
|
||||
|
||||
E find(Long id);
|
||||
|
||||
void persist(E entity);
|
||||
|
||||
E merge(E entity);
|
||||
|
||||
void delete(E entity);
|
||||
|
||||
List<E> findAll();
|
||||
}
|
||||
Reference in New Issue
Block a user