Created
March 31, 2014 13:44
-
-
Save eeichinger/9892546 to your computer and use it in GitHub Desktop.
#microservice best practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service("blStateService") | |
public class StateServiceImpl implements StateService { | |
@Resource(name="blStateDao") | |
protected StateDao stateDao; | |
public List<State> findStates() { | |
return stateDao.findStates(); | |
} | |
public List<State> findStates(String countryAbbreviation) { | |
return stateDao.findStates(countryAbbreviation); | |
} | |
public State findStateByAbbreviation(String abbreviation) { | |
return stateDao.findStateByAbbreviation(abbreviation); | |
} | |
@Transactional("blTransactionManager") | |
public State save(State state) { | |
return stateDao.save(state); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment