diff --git a/src/main/java/com/chat/yourway/repository/jpa/TopicRepository.java b/src/main/java/com/chat/yourway/repository/jpa/TopicRepository.java index b2b72b0..14660c8 100644 --- a/src/main/java/com/chat/yourway/repository/jpa/TopicRepository.java +++ b/src/main/java/com/chat/yourway/repository/jpa/TopicRepository.java @@ -7,7 +7,6 @@ import java.util.UUID; import com.chat.yourway.model.TopicScope; -import jakarta.validation.constraints.NotNull; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; @@ -35,8 +34,7 @@ public interface TopicRepository extends JpaRepository { Optional findByName(@Param("name") String name); @Query(value = "SELECT t FROM Topic t Where t.id = :id and t.scope != 'DELETED'") - @Override - Optional findById(UUID id); + Optional findById(@Param("id") UUID id); @Query(value = """ SELECT t FROM Topic t JOIN FETCH t.topicSubscribers s