Last change
on this file was 8a947b9, checked in by ste08 <sjovanoska@…>, 3 months ago |
Notifications + triggers!
|
-
Property mode
set to
100644
|
File size:
565 bytes
|
Line | |
---|
1 | package com.example.skychasemk.repository;
|
---|
2 |
|
---|
3 | import com.example.skychasemk.model.Notification;
|
---|
4 | import com.example.skychasemk.model.Wishlist;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.Query;
|
---|
7 | import org.springframework.data.repository.query.Param;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 |
|
---|
12 | public interface NotificationRepository extends JpaRepository<Notification, Integer> {
|
---|
13 | @Query("SELECT n FROM Notification n WHERE n.userId = :userId")
|
---|
14 | List<Notification> findByUserId(@Param("userId") Integer userId);
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.