Michel Moreira created OPENJPA-2794:
---------------------------------------
Summary: Primary keys and foreign keys not being reversed when
targeting a subset of the schemas on Oracle.
Key: OPENJPA-2794
URL: https://issues.apache.org/jira/browse/OPENJPA-2794
Project: OpenJPA
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Michel Moreira
Primary keys and foreign keys not being reversed when targeting a subset of the
schemas on Oracle.
Using the HR demo database:
{code:java}
var options = new Options();
options.put("properties", "<location of persistence xml>");
var configuration = new JDBCConfigurationImpl();
Configurations.populateConfiguration(configuration, options);
var generator = new SchemaGenerator(configuration);
generator.generateSchemas(new DBIdentifier[]{
DBIdentifier.newTable("HR.REGIONS"),
DBIdentifier.newTable("HR.COUNTRIES"),
DBIdentifier.newTable("HR.LOCATIONS"),
DBIdentifier.newTable("HR.LOCATIONS"),
DBIdentifier.newTable("HR.DEPARTMENTS"),
DBIdentifier.newTable("HR.JOBS"),
DBIdentifier.newTable("HR.EMPLOYEES"),
DBIdentifier.newTable("HR.JOB_HISTORY"),
});
{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)