from("activemq:queue:newAccount")
  .to("mybatis:insertAccount?statementType=Insert");
from("activemq:queue:newAccount")
  .to("mybatis:insertAccount?statementType=Insert");
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
 
 
  <!-- Insert example, using the Account parameter class -->
  <insert id="insertAccount" parameterType="Account">
    insert into ACCOUNT (
      ACC_ID,
      ACC_FIRST_NAME,
      ACC_LAST_NAME,
      ACC_EMAIL
    )
    values (
      #{id}, #{firstName}, #{lastName}, #{emailAddress}
    )
  </insert>
  <!-- Insert example, using the Account parameter class -->
  <insert id="insertAccount" parameterType="Account">
    insert into ACCOUNT (
      ACC_ID,
      ACC_FIRST_NAME,
      ACC_LAST_NAME,
      ACC_EMAIL
    )
    values (
      #{id}, #{firstName}, #{lastName}, #{emailAddress}
    )
  </insert>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow