mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Remove the use of Optional from Data Neo4j repository examples
See gh-50600 Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
This commit is contained in:
committed by
Stéphane Nicoll
parent
6d44476202
commit
c0d4ebc3a5
+1
-3
@@ -16,12 +16,10 @@
|
||||
|
||||
package org.springframework.boot.docs.data.nosql.neo4j.repositories;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.neo4j.repository.Neo4jRepository;
|
||||
|
||||
public interface CityRepository extends Neo4jRepository<City, Long> {
|
||||
|
||||
Optional<City> findOneByNameAndState(String name, String state);
|
||||
City findOneByNameAndState(String name, String state);
|
||||
|
||||
}
|
||||
|
||||
+1
-2
@@ -17,11 +17,10 @@
|
||||
package org.springframework.boot.docs.data.nosql.neo4j.repositories
|
||||
|
||||
import org.springframework.data.neo4j.repository.Neo4jRepository
|
||||
import java.util.Optional
|
||||
|
||||
interface CityRepository : Neo4jRepository<City?, Long?> {
|
||||
|
||||
fun findOneByNameAndState(name: String?, state: String?): Optional<City?>?
|
||||
fun findOneByNameAndState(name: String?, state: String?): City?
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user