Hi, all! First time here, I'm using orm.xml file and there I have a schema definition: <?xml version="1.0" encoding="UTF-8"?> <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd http://incubator.apache.org/openjpa/orm http://incubator.apache.org/openjpa/xml/ns/persistence/openjpa_orm_1_0.xsd" version="1.0"> <persistence-unit-metadata> <persistence-unit-defaults> <schema>gfi</schema> </persistence-unit-defaults> </persistence-unit-metadata> </entity-mappings>
My, persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" 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"> <persistence-unit name="gfi-corePU" transaction-type="RESOURCE_LOCAL"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <mapping-file>META-INF/orm.xml</mapping-file> <class>com.gilbertoca.gfi.model.inventario.UnidadeMedida</class> <class>com.gilbertoca.gfi.model.inventario.Produto</class> <class>com.gilbertoca.gfi.model.inventario.Categoria</class> <class>com.gilbertoca.gfi.model.inventario.Item</class> <properties> <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/> <property name="openjpa.ConnectionURL" value="jdbc:derby:gfi_db;create=true"/> <property name="openjpa.ConnectionUserName" value="any"/> <property name="openjpa.ConnectionPassword" value="value"/> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/> <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/> </properties> </persistence-unit> </persistence> Any tip here? Gilberto
