We are trying to generate upsert statement of phoenix with the logic we want to give in xml file . We are thinking of using antlr or string templates , Please let us know which one to use better . or any other approach we can use Input data is thought of be given from xml file. Antlr or string template will read that xml and then generate the upsert statements. IN xml we thought of
<Query>
<Maintable>Employee</Maintable>
<Jointable>Employer</Jointable>
<joinType>INNER</joinType>
<columnsToSelect>"ID","Name","Employee_SHRT_NME"</columnsToSelect>
</Query>