[jboss-user] [EJB 3.0] - Re: [BUG] - Error during deployment
adamzrk
do-not-reply at jboss.com
Thu Apr 12 07:42:12 EDT 2007
| <?xml version="1.0" encoding="UTF-8"?>
| <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="airportPU" transaction-type="JTA">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/OracleDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="create-drop" />
| <property name="show_sql" value="true"/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />
| </properties>
| </persistence-unit>
| </persistence>
|
the code above gives the same exception as the one below
| <?xml version="1.0" encoding="UTF-8"?>
| <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="airportPU" transaction-type="JTA">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/OracleDS</jta-data-source>
| <class>airport.bean.entity.Airplane</class>
| <class>airport.bean.entity.Airport</class>
| <class>airport.bean.entity.City</class>
| <class>airport.bean.entity.Country</class>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="create-drop" />
| <property name="show_sql" value="true"/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />
| </properties>
| </persistence-unit>
| </persistence>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036689#4036689
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036689
More information about the jboss-user
mailing list