[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-270) MSSQL - Nullable Foreign PK
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon Sep 22 16:23:05 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31262#action_31262 ]
Emmanuel Bernard commented on HSEARCH-270:
------------------------------------------
This bug should be re-qualified. I think this is an issue coming from Hibernate annotation. This needs further investigation though.
> MSSQL - Nullable Foreign PK
> ---------------------------
>
> Key: HSEARCH-270
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-270
> Project: Hibernate Search
> Issue Type: Bug
> Environment: MS SQL Server 2005, test suite (test org.hibernate.search.test.embedded.EmbeddedTest)
> Reporter: Juraci Paixao Krohling
> Assignee: Juraci Paixao Krohling
>
> Model org.hibernate.search.test.embedded.Product needs to have its "CUST_NAME" as "nullable=false". MSSQL2005 refuses to create it on its current status because it is being marked as nullable.
> 16:32:31,150 ERROR SchemaExport:348 - Unsuccessful: create table [Product_Order] (Product_id int not null, [orders_id] int not null, CUST_NAME varchar(255) null, primary key (Product_id, CUST_NAME))
> 16:32:31,151 ERROR SchemaExport:349 - Cannot define PRIMARY KEY constraint on nullable column in table 'Product_Order'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list