Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.smartoffice.notification;
|
||||
|
||||
import com.smartoffice.user.User;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface NotificationRepository extends JpaRepository<Notification, Long> {
|
||||
List<Notification> findAllByUserOrderByCreatedAtDesc(User user);
|
||||
}
|
||||
Reference in New Issue
Block a user