181920212223242526
RepositoryService<SecurityQuestion> { @Override public SecurityQuestion store(SecurityQuestion securityQuestion) { SecurityQuestionDAO repository = new SecurityQuestionDAO(); return repository.save(securityQuestion); }
262728293031323334
} @Override public void remove(SecurityQuestion securityQuestion) { SecurityQuestionDAO repository = new SecurityQuestionDAO(); repository.delete(securityQuestion); }
343536373839404142
} @Override public Collection<SecurityQuestion> getAll() { SecurityQuestionDAO repository = new SecurityQuestionDAO(); return repository.getAll(); }
4142434445464748
} @Override public SecurityQuestion getById(Serializable id) { SecurityQuestionDAO repository = new SecurityQuestionDAO(); return repository.get(id); }