-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b05de8
commit 969cc0d
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
ServerSide/src/main/java/com/letter/server/dao/repository/MessageRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.letter.server.dao.repository; | ||
|
||
import com.letter.server.dao.entity.MessageEntity; | ||
import com.letter.server.dao.entity.UserEntity; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
import java.util.List; | ||
|
||
public interface MessageRepository extends CrudRepository<MessageEntity, Long> { | ||
|
||
List<MessageEntity> findAllBySenderAndRecipient(UserEntity sender, UserEntity recipient); | ||
|
||
List<MessageEntity> findAllBySenderInAndRecipientIn(UserEntity sender, UserEntity recipient); | ||
} |
7 changes: 7 additions & 0 deletions
7
ServerSide/src/main/java/com/letter/server/dao/repository/OnlineStatusRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.letter.server.dao.repository; | ||
|
||
import com.letter.server.dao.entity.OnlineStatusEntity; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
public interface OnlineStatusRepository extends CrudRepository<OnlineStatusEntity, Long> { | ||
} |
10 changes: 10 additions & 0 deletions
10
ServerSide/src/main/java/com/letter/server/dao/repository/UserRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.letter.server.dao.repository; | ||
|
||
import com.letter.server.dao.entity.UserEntity; | ||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface UserRepository extends CrudRepository<UserEntity, Long> { | ||
|
||
} |