I am able to index all my entries in my table named info. This table has four columns named id, name, city and branch. I have written a data-config file as follow :
<dataConfig> <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://3307/dbname" user="user-name" password="password"/> <document> <entity name="id" query="select id,name,city,branch from info"> </entity> </document> </dataConfig>