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.
Table1 executeQuery(String billId)
{
ResultSetHandler<Table1> resultHandler = new BeanHandler<Table1>(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
}