How to write Container Managed Entity Beans in JBo

Hello,
I am trying to create a entity beans (CMP) . I want to deploy it in JBOSS.
I am trying to use Hypersonic DB that is present in JBoss.
I would like to know how to inform JBoss about the table name and the column names that are present in the Table.
Should I write any select statement in the EJB-Jar.xml file?
what should be entered in <jbosscmp-jdbc>.xml file.
Any examples that I can refer will be of great help.
Thank you
With warm regards,
Dharm