Skip to content

Instantly share code, notes, and snippets.

@Romeh
Created September 3, 2018 13:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Romeh/602b32d756801b68e6580c5f424fbf47 to your computer and use it in GitHub Desktop.
/**
* main customer repository
*/
@Repository
@Transactional
public interface CustomerRepository extends CrudRepository<Customer, Long> {
Optional<Customer> findCustomerByName(String name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment