Commit 6fc159d4 authored by Eduardo Macarron's avatar Eduardo Macarron

parameterType is not needed

parent 200c9882
......@@ -20,6 +20,7 @@ log4j.rootLogger=WARN, stdout
# My logging configuration...
log4j.logger.org.mybatis.jpetstore=TRACE
log4j.logger.org.mybatis.spring=TRACE
## Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
......
......@@ -21,7 +21,7 @@
<cache />
<select id="getAccountByUsername" parameterType="string" resultType="Account">
<select id="getAccountByUsername" resultType="Account">
SELECT
SIGNON.USERNAME,
ACCOUNT.EMAIL,
......@@ -47,7 +47,7 @@
AND PROFILE.FAVCATEGORY = BANNERDATA.FAVCATEGORY
</select>
<select id="getAccountByUsernameAndPassword" parameterType="Account" resultType="Account">
<select id="getAccountByUsernameAndPassword" resultType="Account">
SELECT
SIGNON.USERNAME,
ACCOUNT.EMAIL,
......
......@@ -21,7 +21,7 @@
<cache />
<select id="getCategory" parameterType="string" resultType="Category">
<select id="getCategory" resultType="Category">
SELECT
CATID AS categoryId,
NAME,
......
......@@ -21,7 +21,7 @@
<cache />
<select id="getItemListByProduct" parameterType="string" resultType="Item">
<select id="getItemListByProduct" resultType="Item">
SELECT
I.ITEMID,
LISTPRICE,
......@@ -42,7 +42,7 @@
AND I.PRODUCTID = #{value}
</select>
<select id="getItem" parameterType="string" resultType="Item">
<select id="getItem" resultType="Item">
select
I.ITEMID,
LISTPRICE,
......@@ -65,13 +65,13 @@
and I.ITEMID = #{value}
</select>
<select id="getInventoryQuantity" parameterType="string" resultType="int">
<select id="getInventoryQuantity" resultType="int">
SELECT QTY AS value
FROM INVENTORY
WHERE ITEMID = #{itemId}
</select>
<update id="updateInventoryQuantity" parameterType="map">
<update id="updateInventoryQuantity">
UPDATE INVENTORY SET
QTY = QTY - #{increment}
WHERE ITEMID = #{itemId}
......
......@@ -21,7 +21,7 @@
<cache />
<select id="getLineItemsByOrderId" parameterType="int" resultType="LineItem">
<select id="getLineItemsByOrderId" resultType="LineItem">
SELECT
ORDERID,
LINENUM AS lineNumber,
......@@ -32,7 +32,7 @@
WHERE ORDERID = #{orderId}
</select>
<insert id="insertLineItem" parameterType="LineItem">
<insert id="insertLineItem">
INSERT INTO LINEITEM (ORDERID, LINENUM, ITEMID, QUANTITY, UNITPRICE)
VALUES (#{orderId}, #{lineNumber}, #{itemId}, #{quantity}, #{unitPrice})
</insert>
......
......@@ -21,7 +21,7 @@
<cache />
<select id="getOrder" resultType="Order" parameterType="int">
<select id="getOrder" resultType="Order">
select
BILLADDR1 AS billAddress1,
BILLADDR2 AS billAddress2,
......@@ -54,7 +54,7 @@
AND ORDERS.ORDERID = ORDERSTATUS.ORDERID
</select>
<select id="getOrdersByUsername" parameterType="string" resultType="Order">
<select id="getOrdersByUsername" resultType="Order">
SELECT
BILLADDR1 AS billAddress1,
BILLADDR2 AS billAddress2,
......@@ -88,7 +88,7 @@
ORDER BY ORDERDATE
</select>
<insert id="insertOrder" parameterType="Order">
<insert id="insertOrder">
INSERT INTO ORDERS (ORDERID, USERID, ORDERDATE, SHIPADDR1, SHIPADDR2, SHIPCITY, SHIPSTATE,
SHIPZIP, SHIPCOUNTRY, BILLADDR1, BILLADDR2, BILLCITY, BILLSTATE, BILLZIP, BILLCOUNTRY,
COURIER, TOTALPRICE, BILLTOFIRSTNAME, BILLTOLASTNAME, SHIPTOFIRSTNAME, SHIPTOLASTNAME,
......@@ -99,7 +99,7 @@
#{shipToFirstName}, #{shipToLastName}, #{creditCard}, #{expiryDate}, #{cardType}, #{locale})
</insert>
<insert id="insertOrderStatus" parameterType="Order">
<insert id="insertOrderStatus">
INSERT INTO ORDERSTATUS (ORDERID, LINENUM, TIMESTAMP, STATUS)
VALUES (#{orderId,jdbcType=NUMERIC}, #{orderId,jdbcType=NUMERIC}, #{orderDate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR})
</insert>
......
......@@ -21,7 +21,7 @@
<cache />
<select id="getProduct" parameterType="string" resultType="Product">
<select id="getProduct" resultType="Product">
SELECT
PRODUCTID,
NAME,
......@@ -31,7 +31,7 @@
WHERE PRODUCTID = #{productId}
</select>
<select id="getProductListByCategory" parameterType="string" resultType="Product">
<select id="getProductListByCategory" resultType="Product">
SELECT
PRODUCTID,
NAME,
......@@ -41,7 +41,7 @@
WHERE CATEGORY = #{value}
</select>
<select id="searchProductList" parameterType="string" resultType="Product">
<select id="searchProductList" resultType="Product">
select
PRODUCTID,
NAME,
......
......@@ -21,13 +21,13 @@
<cache />
<select id="getSequence" parameterType="Sequence" resultType="Sequence">
<select id="getSequence" resultType="Sequence">
SELECT name, nextid
FROM SEQUENCE
WHERE NAME = #{name}
</select>
<update id="updateSequence" parameterType="Sequence">
<update id="updateSequence">
UPDATE SEQUENCE
SET NEXTID = #{nextId}
WHERE NAME = #{name}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment