Guillaume Chauvet created OPENJPA-2361:
------------------------------------------

             Summary: BuildSchema/DDL : removing constraints unique/nullable 
has no effect.
                 Key: OPENJPA-2361
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2361
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 2.2.1, 2.2.0
         Environment: Windows 7 64 bits, JRE 1.6.0_43, Derby 10.8.2.2
            Reporter: Guillaume Chauvet


We have noticed during the database upgrade by OpenJPA that an annotated field 
with @Column(unique=true) in our previous DB model  - annotated now 
@Column(unique=false) - doesn't remove the old unique constraint. There is the 
same behaviour with @Column(nullable=true/false).

Current workaround: we drop the constraint with a native SQL request.

Attached please find two bundled unitary testsuites that reproduce the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to