From dc7d35706c2aa11352f5c72d98247e0919dc0db3 Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 4 Dec 2020 15:24:29 -0800 Subject: [PATCH] Edit Javadoc in Async Inline Caching Sample code. Use SDG's CollectionUtils class instead of Apache Shiro's CollectionUtils class in the GolfCourse model class. Implement the toString() method in terms of the GolfTournament 'name'. --- .../app/caching/inline/async/client/model/GolfCourse.java | 3 +-- .../caching/inline/async/client/model/GolfTournament.java | 4 +++- .../caching/inline/async/client/repo/GolferRepository.java | 2 +- .../caching/inline/async/client/service/GolferService.java | 5 +++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfCourse.java b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfCourse.java index 9526c0ce..e5601ab9 100644 --- a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfCourse.java +++ b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfCourse.java @@ -20,8 +20,7 @@ import java.util.Collections; import java.util.List; import java.util.Set; -import org.apache.shiro.util.CollectionUtils; - +import org.springframework.data.gemfire.util.CollectionUtils; import org.springframework.util.Assert; import lombok.EqualsAndHashCode; diff --git a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfTournament.java b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfTournament.java index f597cb90..764bd52c 100644 --- a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfTournament.java +++ b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/model/GolfTournament.java @@ -38,10 +38,12 @@ import lombok.ToString; * Abstract Data Type (ADT) modeling a golf tournament. * * @author John Blum + * @see example.app.caching.inline.async.client.model.Golfer + * @see example.app.caching.inline.async.client.model.GolfCourse * @since 1.4.0 */ @Getter -@ToString +@ToString(of = "name") @RequiredArgsConstructor(staticName = "newGolfTournament") @SuppressWarnings("unused") public class GolfTournament implements Iterable { diff --git a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/repo/GolferRepository.java b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/repo/GolferRepository.java index 225f940d..1f4bb3c4 100644 --- a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/repo/GolferRepository.java +++ b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/repo/GolferRepository.java @@ -21,7 +21,7 @@ import example.app.caching.inline.async.client.model.Golfer; /** * Spring Data {@link JpaRepository} and Data Access Object (DAO) used to perform basic CRUD and simple SQL query - * data access operations on {@link Golfer Golfers} stored in an RDBMS (database) with JPA. + * data access operations on {@link Golfer Golfers} stored in an RDBMS (database) with JPA (Hibernate). * * @author John Blum * @see org.springframework.data.jpa.repository.JpaRepository diff --git a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/service/GolferService.java b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/service/GolferService.java index 84361ce7..210336ac 100644 --- a/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/service/GolferService.java +++ b/spring-geode-samples/caching/inline-async/src/main/java/example/app/caching/inline/async/client/service/GolferService.java @@ -34,11 +34,12 @@ import example.app.caching.inline.async.client.model.Golfer; import example.app.caching.inline.async.client.repo.GolferRepository; /** - * Spring {@link Service} class used to manage {@link Golfer Golfers}. + * Spring {@link Service} class used to manage {@link Golfer Golfers} on the tour. * * @author John Blum - * @see org.springframework.stereotype.Service + * @see org.apache.geode.cache.Region * @see org.springframework.data.gemfire.GemfireTemplate + * @see org.springframework.stereotype.Service * @see example.app.caching.inline.async.client.model.Golfer * @see example.app.caching.inline.async.client.repo.GolferRepository * @since 1.4.0