[jboss-user] [EJB 3.0] - Re: Unable to deploy persistence entity on JBOss : Please He
waynebaylor
do-not-reply at jboss.com
Tue Jun 19 11:02:22 EDT 2007
here is a copy of a persistence.xml file i've used. also, i set up the oracle datasource in oracle-ds.xml and put the jdbc jar file (ojdbc14.jar) in the .../server/default/lib dir.
<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="p_unit" transaction-type="JTA">
|
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
|
| <jta-data-source>java:/OracleDS</jta-data-source>
|
| <class>entity.One</class>
| <class>entity.Two</class>
| <class>entity.Three</class>
|
|
| <properties>
| <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=4055669#4055669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055669
More information about the jboss-user
mailing list