<%_ if (position === 'import') { _%>
    <%_ if (ormTool === 'mybatis' && databaseTypeSql) { _%>
import org.apache.ibatis.annotations.Select;
    <%_ } _%>
<%_ } _%>
<%_ if (position === 'method') { _%>
    <%_ if (ormTool === 'mybatis' && databaseTypeSql) { _%>

    @Select("select a.* from common_table_relationship a left join common_table c on c.id = a.common_table_id where c.entity_name = #{commonTableEntityName}")
    List<CommonTableRelationship> findByCommonTableEntityName(@Param("commonTableEntityName") String commonTableEntityName);
    <%_ } _%>
<%_ } _%>
