Skip to content

Instantly share code, notes, and snippets.

@must1
Created January 2, 2019 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save must1/3382776017af2b080c8e3e45d71c6adc to your computer and use it in GitHub Desktop.
Save must1/3382776017af2b080c8e3e45d71c6adc to your computer and use it in GitHub Desktop.
interface AccountRepository {
Account findById(Id id);
}
class MySQLAccountRepository implements AccountRepository {
private CrudRepository<Account, Integer> repository;
// tutaj konstruktor
public Account findById(Id id) {
return this.repository.findById(id); // czy jak tam ta metoda się nazywa
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment