package swg.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import swg.dao.AccountDao; import swg.entity.Account; import java.util.List; @Service public class AccountService { @Autowired AccountDao accountDao; public List getAllAccounts() { return this.accountDao.findAll(); } public Account getAccountByStationId(Long stationId) { return this.accountDao.findByStationId(stationId); } }