22 lines
623 B
Java
22 lines
623 B
Java
package de.vanitasvitae.fasel.db.dao.impl;
|
|
|
|
import java.sql.SQLException;
|
|
import java.util.List;
|
|
|
|
import com.j256.ormlite.dao.BaseDaoImpl;
|
|
import com.j256.ormlite.support.ConnectionSource;
|
|
import de.vanitasvitae.fasel.db.dao.AccountDao;
|
|
import de.vanitasvitae.fasel.db.entity.Account;
|
|
|
|
public class AccountDaoImpl extends BaseDaoImpl<Account, Long> implements AccountDao {
|
|
|
|
public AccountDaoImpl(ConnectionSource connectionSource)
|
|
throws SQLException {
|
|
super(connectionSource, Account.class);
|
|
}
|
|
|
|
public List<Account> getAccounts() throws SQLException {
|
|
return queryForAll();
|
|
}
|
|
}
|