public static User findByPrimaryKey(Long id) throws ObjectNotFoundException {
DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
SQLQuery sql = SQL.getSQL(User.class, "findByPrimaryKey");
sql.setParameter("id", id);
return instance.query(User.class, sql);
}
public static List<User> getAll() throws ObjectNotFoundException {
DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
SQLQuery sql = SQL.getSQL(User.class, "getAll");