Skip to content
Snippets Groups Projects
Commit 543ce921 authored by Blersch Lara's avatar Blersch Lara
Browse files

update: WishList #7

parent 997b8506
No related branches found
No related tags found
1 merge request!14#7 backend of wishList
......@@ -15,6 +15,7 @@ import java.time.LocalDate;
public class WishListEntry {
//Todo: private User user;
@ManyToOne
private Plant plant;
......
......@@ -9,3 +9,4 @@ import java.time.LocalDate;
@Repository
public interface WishListRepository extends JpaRepository<Plant, Long> {
}
//todo: muss beim JpaRepository noch das Datum und der User mit rein?
\ No newline at end of file
......@@ -21,6 +21,7 @@ public class WishListService {
private final WishListRepository wishListRepository;
public Collection<Plant> getWishedPlants() {
//todo: check for current user
return wishListRepository.findAll();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment