diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java index 9176cfb5..8c8602ef 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java @@ -7,7 +7,7 @@ import lombok.NoArgsConstructor; @Entity -@EqualsAndHashCode(callSuper = false) +@EqualsAndHashCode(callSuper = true) @Data @NoArgsConstructor @AllArgsConstructor diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/LocationRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/LocationRepository.java index 23090db9..9e932e63 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/repository/LocationRepository.java +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/LocationRepository.java @@ -11,5 +11,5 @@ @RepositoryRestResource public interface LocationRepository extends CrudRepository, PagingAndSortingRepository { - List findByIdContaining(@Param("text") String text); + Location findByIdContaining(@Param("text") String text); }