Hallo,
hier ist nochmal meine hibernate.cfg.xml.
Code:
<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory name="java:/portal/UserSessionFactory">
<!-- properties -->
<property name="connection.datasource">java:/PortalDS</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="show_sql">true</property>
<property name="use_outer_join">false</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<!-- mapping files -->
<mapping resource="com/itcc/portlet/mail/bean/BookContactBean.hbm.xml"/>
</session-factory>
</hibernate-configuration>