JBoss Community

Re: EJB Persistence with JBoss 6 v2

created by Steve Dobson in Beginner's Corner - View the full discussion

Sorry, didn't see that the persistence file got messed up, it should have read like this:

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">
   <persistence-unit name="stadiaDB" transaction-type="JTA">
      <jta-data-source>java:/stadiaDS</jta-data-source>
      <provider>org.hibernate.ejb.HibernatePersistence</provider>

      <exclude-unlisted-classes>false</exclude-unlisted-classes>

      <properties>
        <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDialect"/>
        <property name="hibernate.hbm2ddl.auto" value="update"/>
        <property name="hibernate.show_sql" value="true"/>
        <property name="hibernate.format_sql" value="true"/>
        <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLook
up"/>
      </properties>

   </persistence-unit>
</persistence>

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community