-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODLD-445: Only one instance of the work is displayed in search resul…
…ts (#310)
- Loading branch information
1 parent
a6af195
commit 7134a39
Showing
8 changed files
with
451 additions
and
11 deletions.
There are no files selected for viewing
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
4 changes: 3 additions & 1 deletion
4
src/main/java/org/folio/linked/data/model/entity/event/ResourceCreatedEvent.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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
package org.folio.linked.data.model.entity.event; | ||
|
||
public record ResourceCreatedEvent(Long id) { | ||
import org.folio.linked.data.model.entity.Resource; | ||
|
||
public record ResourceCreatedEvent(Resource resource) { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/org/folio/linked/data/repo/ResourceEdgeRepository.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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package org.folio.linked.data.repo; | ||
|
||
import java.util.List; | ||
import org.folio.linked.data.model.entity.ResourceEdge; | ||
import org.folio.linked.data.model.entity.pk.ResourceEdgePk; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ResourceEdgeRepository extends JpaRepository<ResourceEdge, ResourceEdgePk> { | ||
|
||
List<ResourceEdge> findByIdSourceHash(Long hash); | ||
|
||
List<ResourceEdge> findByIdTargetHash(Long hash); | ||
} |
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
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
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
Oops, something went wrong.