#27 gardenplanmodelTest first version implemented

This commit is contained in:
Gian-Andrea Hutter
2022-11-02 13:08:23 +01:00
parent 9e14920fbb
commit b1e4e51d68
3 changed files with 119 additions and 8 deletions
@@ -18,11 +18,11 @@ public interface GardenPlan {
/**
* Attempts to retrieve the {@link Crop} with the specified cropId.
*
* @param id The {@link Crop#cropId} to look for
* @param cropId The {@link Crop} to look for
* @return {@link Optional} of the found {@link Crop}, {@link Optional#empty()} if no entry matched the criteria
* @throws IOException If there is a problem reading from or writing to the database
*/
Optional<Crop> getCropById(long id) throws IOException;
Optional<Crop> getCropById(long cropId) throws IOException;
/**
* Saves a Crop to the Database.