资 源 简 介
Overview
Guice-repository is a Guice-adapted version of Spring Data-JPA project with some additional features.
Example:
```
public class AccountService {
@Inject
private AccountRepository accountRepository;
public void registerUser(String login, String password) throws RegistrationException{
// ... some checks & etc
accountRepository.save(new Account(login, password));
// ... something else
}
public Account findAccount(String login) throws FinderException{
return accountRepository.findAccountByLogin(login);
}
}
```
Repository pattern motivation
"by Edward Hieatt and Rob Mee
Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects."
![](http://guice-repository.g