From: Thomas R. <tri...@us...> - 2009-03-17 21:37:53
|
Update of /cvsroot/springframework/spring/test/org/springframework/jdbc/object In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22732/test/org/springframework/jdbc/object Modified Files: GenericStoredProcedureTests-context.xml GenericStoredProcedureTests.java Log Message: removed autoboxing (SPR-3986 SPR-3987) Index: GenericStoredProcedureTests-context.xml =================================================================== RCS file: /cvsroot/springframework/spring/test/org/springframework/jdbc/object/GenericStoredProcedureTests-context.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenericStoredProcedureTests-context.xml 17 Mar 2009 15:30:18 -0000 1.1 --- GenericStoredProcedureTests-context.xml 17 Mar 2009 21:37:36 -0000 1.2 *************** *** 16,20 **** <constructor-arg index="1"> <util:constant static-field="java.sql.Types.INTEGER"/> ! </constructor-arg> </bean> <bean class="org.springframework.jdbc.core.SqlParameter"> --- 16,20 ---- <constructor-arg index="1"> <util:constant static-field="java.sql.Types.INTEGER"/> ! </constructor-arg> </bean> <bean class="org.springframework.jdbc.core.SqlParameter"> Index: GenericStoredProcedureTests.java =================================================================== RCS file: /cvsroot/springframework/spring/test/org/springframework/jdbc/object/GenericStoredProcedureTests.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenericStoredProcedureTests.java 17 Mar 2009 15:30:18 -0000 1.1 --- GenericStoredProcedureTests.java 17 Mar 2009 21:37:36 -0000 1.2 *************** *** 101,106 **** StoredProcedure adder = (StoredProcedure) bf.getBean("genericProcedure"); Map in = new HashMap(2); ! in.put("amount", amount); ! in.put("custid", custid); Map out = adder.execute(in); Integer id = (Integer) out.get("newid"); --- 101,106 ---- StoredProcedure adder = (StoredProcedure) bf.getBean("genericProcedure"); Map in = new HashMap(2); ! in.put("amount", new Integer(amount)); ! in.put("custid", new Integer(custid)); Map out = adder.execute(in); Integer id = (Integer) out.get("newid"); |