openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milosz Tylenda (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1165) Two unique constraints in a table try to share the same constraint name
Date Wed, 21 Oct 2009 19:38:59 GMT

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

Milosz Tylenda updated OPENJPA-1165:
------------------------------------

    Affects Version/s: 1.2.1

> Two unique constraints in a table try to share the same constraint name
> -----------------------------------------------------------------------
>
>                 Key: OPENJPA-1165
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1165
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 1.2.1, 1.3.0
>            Reporter: Laird Nelson
>            Assignee: Milosz Tylenda
>
> Put two @Column(unique = true) annotations on two different fields in an Entity.
> Set up OpenJPA to synchronize mappings (i.e. generate DDL).
> Observe that when the DDL is created it attempts to create two unique constraints, one
for each column.  This is good.  However, also observe that both unique constraints are named
"UNQ_".  This causes the H2 database (and probably others) to reject the DDL as invalid (correctly).

-- 
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