[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-270) MSSQL - Nullable Foreign PK
Juraci Paixao Krohling (JIRA)
noreply at atlassian.com
Mon Sep 22 10:46:04 EDT 2008
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
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