File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
main/java/org/socialsignin/spring/data/dynamodb/repository/query
test/java/org/socialsignin/spring/data/dynamodb/domain/sample Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 44* .iml
55.idea
66
7+ release.properties
8+
79# Package Files #
810* .jar
911* .war
Original file line number Diff line number Diff line change 1919 <spring .version>5.0.1.RELEASE</spring .version>
2020 <spring-data .version>Kay-SR1</spring-data .version>
2121 <hibernate-validator .version>5.2.4.Final</hibernate-validator .version>
22- <aws-java-sdk .version>1.11.93 </aws-java-sdk .version>
22+ <aws-java-sdk .version>1.11.232 </aws-java-sdk .version>
2323 <junit .version>4.12</junit .version>
2424 <mockito .version>1.10.19</mockito .version>
2525
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ else if (method.isSliceQuery() && !isSingleEntityResultsRestriction()) {
6464 }
6565
6666 protected abstract Query <T > doCreateQuery (Object [] values );
67- protected abstract Query <Long > doCreateCountQuery (Object [] values ,boolean pageQuery );
67+ protected abstract Query <Long > doCreateCountQuery (Object [] values , boolean pageQuery );
6868 protected abstract boolean isCountQuery ();
6969 protected abstract boolean isExistsQuery ();
7070
@@ -78,7 +78,7 @@ protected Query<T> doCreateQueryWithPermissions(Object values[]) {
7878 return query ;
7979 }
8080
81- protected Query <Long > doCreateCountQueryWithPermissions (Object values [],boolean pageQuery ) {
81+ protected Query <Long > doCreateCountQueryWithPermissions (Object values [], boolean pageQuery ) {
8282 Query <Long > query = doCreateCountQuery (values ,pageQuery );
8383 query .setScanCountEnabled (method .isScanCountEnabled ());
8484 return query ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static class TestAppConfig {
3939 public void testOptionalKey () {
4040 final Date joinDate = new Date (1000 );
4141 final String id = "testOptionalKey" ;
42- Optional <User > result = userRepository .findOne (id );
42+ Optional <User > result = userRepository .findById (id );
4343
4444 assertNotNull (result );
4545 assertEquals (result , Optional .empty ());
@@ -51,7 +51,7 @@ public void testOptionalKey() {
5151
5252 User savedEntity = userRepository .save (newUser );
5353
54- result = userRepository .findOne (id );
54+ result = userRepository .findById (id );
5555 assertNotNull (result );
5656 assertEquals (savedEntity , result .get ());
5757 assertEquals (joinDate , result .get ().getJoinDate ());
Original file line number Diff line number Diff line change 1010public interface UserRepository extends Repository <User , String > {
1111
1212 // CRUD method using Optional
13- Optional <User > findOne (String id );
13+ Optional <User > findById (String id );
1414
1515 @ EnableScan
1616 List <User > findByLeaveDate (Instant leaveDate );
You can’t perform that action at this time.
0 commit comments