• Post Reply Bookmark Topic Watch Topic
  • New Topic

IBATIS QUERY

 
Pritha Kundu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i use two include tags using dynamic sql tag .. because according to my need if a particular type is CHK then i need to include two where clause written in sql block like this for eg
<sql id="whereBAI">
HCA_BAI_TRANS A, HCA_BAI_LOCKBOX_HDR B, HCA_BAI_ADDRHDR C,
HCA_TRANS_SET D, HCA_CLM_PYMNT E, HCA_EFT F, HCA_LOCKBOX_DTLS G,
HCA_PRVDR_PYR_TPR H, HCA_COMPANY I
</sql>
then included two of these sql blocks in it as above.. but it is giving missing expression error . kindly give my right syntax

<dynamic>
<isEqual property="remittance.financial.paymentMethodCode"
compareValue="CHK">
<include refid="whereOSU" />,
<include refid="whereBAI" />
</isEqual>
</dynamic>
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!