Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-270) MSSQL -
 Nullable Foreign PK

Anupam M (JIRA)

2008-09-22

Replies: Find Java Web Hosting

Author LoginPost Reply
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.