Issue Type: Bug Bug
Affects Versions: 4.1.7
Assignee: Brett Meyer
Components: core
Created: 06/Sep/12 11:44 AM
Description:

I set SybaseDialect's supportsNotNullUnique to false, but SchemaExport is still creating tables with "not null unique" in them.

Possible fix...

org.hibernate.mapping.Table#sqlCreateString has the following check:

boolean useUniqueConstraint = col.isUnique() && ( !col.isNullable() || dialect.supportsNotNullUnique() );

Should that "!" be there? It seems that "unique" should be added iff 1.) col is unique and 2.) col IS nullable or supportsNotNullUnique.

Project: Hibernate ORM
Priority: Major Major
Reporter: Brett Meyer
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