When I attempt to use item.persist()
,it is failing. While I cannot see the final sql statement,
it does show the call before binding the parameters and the schema is missing.
When I am creating the Entity Manager I am using the map of properties approach.
So, perhaps I am using the wrong property name, I am working from various examples on the web.
I am using EclipseLink and accessing a Netezza database.
After I create the EntityManager
, here is the output from getProperties()
:
em properties:
{javax.persistence.jdbc.url=jdbc:netezza://server.com:5480/databaseName, javax.persistence.jdbc.password=xxxx, openjpa.jdbc.Schema=RT, javax.persistence.jdbc.driver=org.netezza.Driver, javax.persistence.jdbc.user=xxxx}
The openjpa.jdbc.Schema=RT
is set to the right value in the properties.
UPDATED: I also have the following values in my persistence.xml:
<properties>
<property name="openjpa.jdbc.Schema" value="RT" />
<property name="javax.persistence.jdbc.url" value="jdbc:netezza://server.com:5480/database"/>
<property name="javax.persistence.jdbc.user" value="xxxxx"/>
<property name="javax.persistence.jdbc.password" value="xxxx"/>
<property name="javax.persistence.jdbc.driver" value="org.netezza.Driver"/>
</properties>
What is the correct property for the schema? That is not listed in any of the properties suggested. It is required to find the correct table...