01: package org.springunit.framework.samples.jpetstore.dao;
02:
03: import java.util.List;
04:
05: import org.springframework.dao.DataAccessException;
06: import org.springunit.framework.samples.jpetstore.domain.Order;
07:
08: public interface OrderDao<V extends Order> extends Dao<V> {
09:
10: List<? extends V> getOrdersByUsername(String username)
11: throws DataAccessException;
12:
13: V getOrder(int orderId) throws DataAccessException;
14:
15: void insertOrder(V order) throws DataAccessException;
16:
17: }
|