[ https://issues.apache.org/jira/browse/OPENJPA-1709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee updated OPENJPA-1709: -------------------------------- Affects Version/s: 2.2.0 2.1.1 Fix Version/s: (was: 2.2.0) 2.3.0 Move fix version to 2.3.0 in preparation for 2.2.0 release. > SQL generation with two schemas involved fails to generate > OPENJPA_SEQUENCE_TABLE across both schemas for Postgres > ------------------------------------------------------------------------------------------------------------------ > > Key: OPENJPA-1709 > URL: https://issues.apache.org/jira/browse/OPENJPA-1709 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.0, 2.1.1, 2.2.0 > Environment: Mac OSX, JDK6, OpenJPA maven plugin > Reporter: Benjamin Renaud > Fix For: 2.3.0 > > > Summary is pretty self explanatory. To reproduce: > - Create two entities, that map to two different schemas, let's say foo and > bar. > - Make sure they both have generated ids, something like: > @Id > @GeneratedValue(strategy = GenerationType.AUTO) > private long id; > - run the openjpa:sql maven target > The result will have: > CREATE TABLE foo.OPENJPA_SEQUENCE_TABLE (ID SMALLINT NOT NULL, SEQUENCE_VALUE > BIGINT, PRIMARY KEY (ID)); > where it should have > CREATE TABLE foo.OPENJPA_SEQUENCE_TABLE (ID SMALLINT NOT NULL, SEQUENCE_VALUE > BIGINT, PRIMARY KEY (ID)); > CREATE TABLE bar.OPENJPA_SEQUENCE_TABLE (ID SMALLINT NOT NULL, SEQUENCE_VALUE > BIGINT, PRIMARY KEY (ID)); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira