I\'m developing webapp using Spring & Hibernate.
Table 1: BaseTable
+------------+--------------+------+-----+---------+----------------+ | Fiel
You need to use native query for this purpose
String sql = "SELECT A.* FROM Table2 As a INNER JOIN Table1 As b " + " ON (a.Serial = b.Serial1 or a.Serial = b.Serial2);"; SQLQuery query = session.createSQLQuery(sql); query.addEntity(Table2.class); List tableContent = query.list();