class SelectEntityService {

    public Long insertTask(TaskSql task, LoginUser user) throws SQLException {
        task.setPojo_name(task.getClass_name());
        task.setUpdate_user_no(user.getUserNo());
        task.setMethod_name(task.getClass_name());
        task.setParameters(StringUtils.EMPTY);
        task.setScalarType("List");
        task.setPojoType("EntityType");
        task.setPagination(false);
        task.setSql_style("sql_style");
        task.setApproved(2);
        task.setApproveMsg(StringUtils.EMPTY);
        task.setCrud_type("select");
        task.setGenerated(true);
        task.setVersion(1);
        task.setHints(StringUtils.EMPTY);
        return selectEntityDao.insertTask(task);
    }

}