In jboss2.4.4 ihave define table mapping like this
in statdardjaws.xml
<?xml version="1.0" encoding="UTF-8"?>
<jaws>
<datasource>
java:/OracleDB</datasource>
<type-mapping>Oracle8</type-mapping>
<debug>false</debug>
<enterprise-beans>
<entity>
<ejb-name>CustomerEJB</ejb-name>
<table-name>cust</table-name>
<create-table>false</create-table>
<cmp-field>
<field-name>id</field-name>
<column-name>ID</column-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
<column-name>NAME</column-name>
</cmp-field>
</entity>
</enterprise-beans>
Jawwad Ahmed