Well, where are you right @ nikhil500. ScriptTransformer is one answer, (I'm not sure if this is the easiest). The dataconfig.xml file contains a java function:
<script><![CDATA[ function puttwodouble(row) { var attrVal1 = row.get("GEO_X_WERT"); var attrVal2 = row.get("GEO_Y_WERT"); var attrVal = attrVal1 + "," + attrVal2; var arr = new java.util.ArrayList() arr.add(attrVal1); arr.add(attrVal2); row.put("store",attrVal); row.put("x_geo_str",arr); return row; } ]]>
whitch will be called:
<entity name="inner_geo_str" transformer="script:puttwodouble" query="select GEO_X_WERT, GEO_Y_WERT from FIRMA_GEODATEN where GEO_FIR_NR ='${outer.FIR_NR}' and geo_x_wert != 'NF'"> <field column="GEO_X_WERT" name="x_geo_x_s"/> <field column="GEO_Y_WERT" name="x_geo_y_s"/> </entity>
Hope this helps others solve this problem.
vuky
source share