[jboss-user] [EJB 3.0] - Re: There is no default persistence unit in this deployment
davestar
do-not-reply at jboss.com
Thu Jan 15 16:15:49 EST 2009
I reverse engineered and generated hibernate pojos and Session EJB dao code. They are packaged in my ear. My persistence.xml is in the MET-INF folder in the ear file.
Here's my persistence.xml
<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_1_0.xsd"
| version="1.0">
| <persistence-unit name="integrations">
| <jta-data-source>java:/cdwDB</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| </properties>
| </persistence-unit>
| </persistence>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202257#4202257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202257
More information about the jboss-user
mailing list