I reintroduce persistence.xml:
<persistence-unit name="StatInfoUnit">
<jta-data-source>java:/StatInfoDS</jta-data-source>
<mapping-file>META-INF/orm.xml</mapping-file>
<*class>test.MySite</*class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<*provider>org.hibernate.ejb.HibernatePersistence</*provider>
<*properties>
<*property name="hibernate.hbm2ddl.auto" value="update" />
<*property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
</*properties>
</persistence-unit>
Note: remove the * (it just for the display in the forum)
Note: If I don't specify the class tag "test.MySite" the log does not show the
EJB mapping with the DB
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068108#4068108
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068108
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user