publicinterfaceOwnerService{/** * @param id of the owner to find. * @return the owner with the specified id. * @throws RuntimeException will be thrown if something goes wrong during data processing. * @throws NotFoundException will be thrown if the owner could not be found in the system. */OwnerfindOneById(Longid);
/** * @param owner to create * @return the new owner * @throws ValidationException will be thrown if something goes wrong during verification. * @throws DataAccessException will be thrown if the horse could not be saved in the database. */OwneraddOwner(Ownerowner)throwsValidationException,DataAccessException;