We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427f21d commit 4fbfb84Copy full SHA for 4fbfb84
src/main/java/com/back/domain/file/repository/AttachmentMappingRepository.java
@@ -4,8 +4,11 @@
4
import com.back.domain.file.entity.EntityType;
5
import org.springframework.data.jpa.repository.JpaRepository;
6
7
+import java.util.List;
8
import java.util.Optional;
9
10
public interface AttachmentMappingRepository extends JpaRepository<AttachmentMapping, Long> {
- Optional<AttachmentMapping> findByEntityTypeAndEntityId(EntityType entityType, Long entityID);
11
-}
+ List<AttachmentMapping> findByEntityTypeAndEntityId(EntityType entityType, Long entityID);
12
+
13
+ void deleteAllByEntityTypeAndEntityId(EntityType entityType, Long entityId);
14
+}
0 commit comments