Subversion Repositories SmartDukaan

Rev

Rev 4422 | Rev 6503 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4422 Rev 6077
Line 9... Line 9...
9
    <collection property="attributes" javaType="ArrayList" column="id" ofType="paymentAttribute" select="getAttributesForPayment"/>
9
    <collection property="attributes" javaType="ArrayList" column="id" ofType="paymentAttribute" select="getAttributesForPayment"/>
10
  </resultMap>
10
  </resultMap>
11
 
11
 
12
  <insert id="insertPayment" parameterType="payment" useGeneratedKeys="true" keyProperty="id">
12
  <insert id="insertPayment" parameterType="payment" useGeneratedKeys="true" keyProperty="id">
13
    INSERT INTO payment
13
    INSERT INTO payment
14
      (gatewayId, userId, merchantTxnId, amount, status, initTimestamp) 
14
      (gatewayId, userId, merchantTxnId, amount, status, initTimestamp, isDigital) 
15
    VALUES
15
    VALUES
16
      (#{gatewayId}, #{userId}, #{merchantTxnId}, #{amount}, #{status},  now())
16
      (#{gatewayId}, #{userId}, #{merchantTxnId}, #{amount}, #{status},  now(), #{isDigital})
17
  </insert>
17
  </insert>
18
 
18
 
19
  <insert id="insertPaymentAttribute" parameterType="map">
19
  <insert id="insertPaymentAttribute" parameterType="map">
20
    INSERT INTO paymentattribute
20
    INSERT INTO paymentattribute
21
      (payment_id, name, value)
21
      (payment_id, name, value)