- Timestamp:
- 03/16/25 20:56:44 (3 months ago)
- Branches:
- master
- Children:
- 3a74959
- Parents:
- c064a42
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/skychasemk/repository/NotificationRepository.java
rc064a42 r8a947b9 2 2 3 3 import com.example.skychasemk.model.Notification; 4 import com.example.skychasemk.model.Wishlist; 4 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 5 11 6 12 public interface NotificationRepository extends JpaRepository<Notification, Integer> { 7 // You can add custom queries here if needed 13 @Query("SELECT n FROM Notification n WHERE n.userId = :userId") 14 List<Notification> findByUserId(@Param("userId") Integer userId); 8 15 }
Note:
See TracChangeset
for help on using the changeset viewer.