You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Uri Boness (JIRA)" <ji...@apache.org> on 2007/08/24 10:40:31 UTC

[jira] Created: (OPENJPA-332) Add a new native sequence type where a separate sequence is used for each table in the database

Add a new native sequence type where a separate sequence is used for each table in the database
-----------------------------------------------------------------------------------------------

                 Key: OPENJPA-332
                 URL: https://issues.apache.org/jira/browse/OPENJPA-332
             Project: OpenJPA
          Issue Type: Wish
          Components: jdbc
    Affects Versions: 0.9.7
            Reporter: Uri Boness


Currently, when defining the entity id in a parent class (mapped superclass), the native sequence type generates only one sequence which will be used by all enties/tables. The only possibility to have a sequence per class-hierarchy is by using a table sequence. In databases that support native sequence objects it is more natural to use such sequences rather than sequence tables. It would be nice if openjpa would provide a "class-hierarchy-native" sequence type which will use a sequence per mapped table.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-332) Add a new native sequence type where a separate sequence is used for each table in the database

Posted by "Uri Boness (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uri Boness updated OPENJPA-332:
-------------------------------

    Attachment: ClassTableNativeJDBCSeq.java

An initial sketch for the sequence implementation. Was only tested on very simple mappings - probably needs to be improved!

> Add a new native sequence type where a separate sequence is used for each table in the database
> -----------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-332
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-332
>             Project: OpenJPA
>          Issue Type: Wish
>          Components: jdbc
>    Affects Versions: 0.9.7
>            Reporter: Uri Boness
>         Attachments: ClassTableNativeJDBCSeq.java
>
>
> Currently, when defining the entity id in a parent class (mapped superclass), the native sequence type generates only one sequence which will be used by all enties/tables. The only possibility to have a sequence per class-hierarchy is by using a table sequence. In databases that support native sequence objects it is more natural to use such sequences rather than sequence tables. It would be nice if openjpa would provide a "class-hierarchy-native" sequence type which will use a sequence per mapped table.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.