<%_ if (position === 'import') { _%>
<%_ } _%>
<%_ if (position === 'method') { _%>
    <%_ if (databaseTypeSql) { _%>

     public List runSql(String sql) {
        <%_ if (ormTool !== 'mybatis') { _%>
        Query query = em.createNativeQuery(sql);
        query.unwrap(SQLQuery.class).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);
        return query.getResultList();
        <%_ } else { _%>
        return new ArrayList();
        <%_ } _%>
    }
    <%_ } _%>
<%_ } _%>
