packageat.ac.tuwien.sepm.assignment.individual.persistence;importat.ac.tuwien.sepm.assignment.individual.entity.Owner;importat.ac.tuwien.sepm.assignment.individual.exception.NotFoundException;importorg.springframework.dao.DataAccessException;publicinterfaceOwnerDao{/** * @param id of the owner to find. * @return the owner with the specified id. * @throws DataAccessException will be thrown if something goes wrong during the database access. * @throws NotFoundException will be thrown if the owner could not be found in the database. */OwnerfindOneById(Longid);
/** * @param owner that specifies the owner to add * @return the newly created horse * @throws DataAccessException will be thrown if something goes wrong during the database access. */OwneraddOwner(Ownerowner);