ibatis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbe...@apache.org
Subject svn commit: r748385 - /ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/binding/MapperAnnotationParser.java
Date Fri, 27 Feb 2009 03:58:32 GMT
Author: cbegin
Date: Fri Feb 27 03:58:32 2009
New Revision: 748385

URL: http://svn.apache.org/viewvc?rev=748385&view=rev
Log:
In the middle of correcting constructor mapping support

Modified:
    ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/binding/MapperAnnotationParser.java

Modified: ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/binding/MapperAnnotationParser.java
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/binding/MapperAnnotationParser.java?rev=748385&r1=748384&r2=748385&view=diff
==============================================================================
--- ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/binding/MapperAnnotationParser.java
(original)
+++ ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/binding/MapperAnnotationParser.java
Fri Feb 27 03:58:32 2009
@@ -32,7 +32,7 @@
     parseCacheRef();
     Method[] methods = type.getMethods();
     for (Method method : methods) {
-      parseResults(method);
+      parseResultsAndConstructorArgs(method);
       parseStatement(method);
     }
   }
@@ -51,7 +51,7 @@
     }
   }
 
-  private void parseResults(Method method) {
+  private void parseResultsAndConstructorArgs(Method method) {
     ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
     Results results = method.getAnnotation(Results.class);
     if (results != null || args != null) {
@@ -59,6 +59,7 @@
       configurator.resultMapStart(resultMapId, getReturnType(method), null);
       applyConstructorArgs(args);
       applyResults(results);
+      configurator.resultMapEnd();
     }
   }
 



Mime
View raw message