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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to