1 package se.citerus.dddsample.domain.model.location;
2
3 import java.util.List;
4
5 public interface LocationRepository {
6
7 /**
8 * Finds a location using given unlocode.
9 *
10 * @param unLocode UNLocode.
11 * @return Location.
12 */
13 Location find(UnLocode unLocode);
14
15 /**
16 * Finds all locations.
17 *
18 * @return All locations.
19 */
20 List<Location> findAll();
21
22 }