Package org.jrest4guice.persistence.ibatis.annotations

Examples of org.jrest4guice.persistence.ibatis.annotations.ResultMap


  }

  private static void processResultMap(Class<?> clazz,
      StringBuffer resultMapSb) {
    if (clazz.isAnnotationPresent(ResultMap.class)) {
      ResultMap annotation = clazz.getAnnotation(ResultMap.class);
      String id = annotation.id();

      // 检查当前resultMap是否已经在其它dao中声明并解析过了
      if (resultMapIds.contains(id))
        return;
      resultMapIds.add(id);

      Class<?> resultClass = annotation.resultClass();
      Result[] results = annotation.result();

      resultMapSb.append("  <resultMap id=\"" + id + "\" class=\""
          + resultClass.getName() + "\">");
      for (Result result : results) {
        resultMapSb.append("\n    <result property=\""
View Full Code Here

TOP

Related Classes of org.jrest4guice.persistence.ibatis.annotations.ResultMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.