openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1709) SQL generation with two schemas involved fails to generate OPENJPA_SEQUENCE_TABLE across both schemas for Postgres
Date Mon, 16 Aug 2010 14:15:17 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Dick updated OPENJPA-1709:
----------------------------------

    Fix Version/s: 2.1.0
                       (was: 2.0.0)

Tentatively targeting for 2.1.0. Version 2.0.0 has shipped. 

> 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
>         Environment: Mac OSX, JDK6, OpenJPA maven plugin
>            Reporter: Benjamin Renaud
>             Fix For: 2.1.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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message