[hibernate-issues] [Hibernate-JIRA] Created: (ANN-818) @DiscriminatorFormula for an integer column with default discriminator type causes failure for DB2/Sybase

Gail Badner (JIRA) noreply at atlassian.com
Sat Apr 11 00:39:17 EDT 2009


@DiscriminatorFormula for an integer column with default discriminator type causes failure for DB2/Sybase
---------------------------------------------------------------------------------------------------------

                 Key: ANN-818
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-818
             Project: Hibernate Annotations
          Issue Type: Bug
            Reporter: Gail Badner
            Assignee: Gail Badner
             Fix For: 3.5


org.hibernate.test.annotations.inheritance.SubclassTest.testFormula() fails on Sybase and DB2 because the default discriminator type (DiscriminatorType.STRING) is used with a formula that returns an integer. Sybase and DB2 don't support implicit conversion from a string to an integer, so the test fails.

The fix is to explicitly define: @DiscriminatorColumn(discriminatorType=DiscriminatorType.INTEGER).

-- 
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