If there are some identical row names in Table1 and Table2 table then how to read them in java? : <p>If there are some identical row names in Table1 and Table2 table then how to read them in java?
Currently, for reading the column values I use table1.coulmn_name. But it will only return the Table1 column value.</p>

<pre><code>Table1 executeQuery(String billId)
    {
        ResultSetHandler&lt;Table1&gt; resultHandler = new BeanHandler&lt;Table1&gt;(Table1.class)       
        table1 table1 = run.query("SELECT * FROM Table1 JOIN Table2 ON Table1.payment_id =Table2.payment_id WHERE Table1.bill_id="+billId, resultHandler)

        return table1
    }
</code></pre>
