Even in case of JPA with EJB3 you must be doing something like following
<persistence-unit name="sample">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
</properties>
</persistence-unit>
or in your persistence.xml you must be referring to the hibernate.cfg.xml
Since in you exception you are getting hibernate exception I am assuming that you are using hibenrate as the ORM solution
see
http://www.hibernate.org/hib_docs/entit ... ation.html
for more configuration options