Skip to content

Instantly share code, notes, and snippets.

@aronbalog
Last active July 26, 2019 19:25
Show Gist options
  • Save aronbalog/08bd7159602854ecb86389087c317481 to your computer and use it in GitHub Desktop.
Save aronbalog/08bd7159602854ecb86389087c317481 to your computer and use it in GitHub Desktop.
package com.example.demo.repository
import com.example.demo.data.Person
import org.springframework.data.mongodb.repository.MongoRepository
import org.springframework.stereotype.Repository
@Repository
interface PersonRepository : MongoRepository<Person, String> {
fun findByNameLike(name: String): List<Person>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment