diff options
author | Vitaly Takmazov | 2022-12-03 15:28:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-14 12:57:52 +0300 |
commit | 0c0ea8897e64461b1cfa9cd86a939b48f0bdd640 (patch) | |
tree | f11c73b8246b0724b26ca08529c3c702e1722d79 /src/main/java/com/juick/service/MessagesService.java | |
parent | 8344ea3e3e652f5307ffb6115d6fdebf638ba098 (diff) |
Initial PostgreSQL schema and profile
Diffstat (limited to 'src/main/java/com/juick/service/MessagesService.java')
-rw-r--r-- | src/main/java/com/juick/service/MessagesService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesService.java b/src/main/java/com/juick/service/MessagesService.java index 0a881924..274d4f30 100644 --- a/src/main/java/com/juick/service/MessagesService.java +++ b/src/main/java/com/juick/service/MessagesService.java @@ -25,6 +25,7 @@ import com.juick.model.Tag; import org.apache.commons.lang3.tuple.Pair; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; +import org.springframework.lang.NonNull; import java.net.URI; import java.util.*; @@ -34,7 +35,7 @@ import java.util.*; */ public interface MessagesService { @CacheEvict(value = { "discover", "discussions", "messages", "replies" }, allEntries = true) - int createMessage(int uid, String txt, String attachment, Set<Tag> tags); + int createMessage(int uid, String txt, String attachment, @NonNull Set<Tag> tags); @CacheEvict(value = { "discover", "discussions", "messages", "replies" }, allEntries = true) int createReply(int mid, int rid, User user, String txt, String attachment); |