mapper.java.ftl 768 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package ${package.Mapper};
  2. <#list importMapperFrameworkPackages as pkg>
  3. import ${pkg};
  4. </#list>
  5. <#if importMapperJavaPackages?size !=0>
  6. <#list importMapperJavaPackages as pkg>
  7. import ${pkg};
  8. </#list>
  9. </#if>
  10. /**
  11. * <p>
  12. * ${table.comment!} Mapper 接口
  13. * </p>
  14. *
  15. * @author ${author}
  16. * @since ${date}
  17. */
  18. <#if mapperAnnotationClass??>
  19. @${mapperAnnotationClass.simpleName}
  20. </#if>
  21. <#if kotlin>
  22. interface ${table.mapperName} : ${superMapperClass}<${entity}> {
  23. <#else>
  24. public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
  25. </#if>
  26. <#list mapperMethodList as m>
  27. /**
  28. * generate by ${m.indexName}
  29. *
  30. <#list m.tableFieldList as f>
  31. * @param ${f.propertyName} ${f.comment}
  32. </#list>
  33. */
  34. ${m.method}
  35. </#list>
  36. }