Skip to content

CH08-mapping-collections/bagofstrings: The ItemRepository.findImagesNative() does not return duplicates #4

@lidinh65

Description

@lidinh65

bagofstrings

public interface ItemRepository extends JpaRepository<Item, Long> {
...
    Set<String> findImagesNative(Long id);     
}

Need to update return type "Collection<String>" as in Item

public class MappingCollectionsSpringDataJPATest {
...
        Set<String> images = itemRepository.findImagesNative(item.getId());
...
}

Need to update type "Collection<String>" as well

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions