[hibernate-issues] [Hibernate-JIRA] Commented: (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:52:17 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32848#action_32848 ] 

Gail Badner commented on ANN-818:
---------------------------------

https://jira.jboss.org/jira/browse/JBPAPP-1879

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