[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

jfheintz do-not-reply at jboss.com
Fri Jul 27 03:17:17 EDT 2007


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



More information about the jboss-user mailing list