[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-818?page=co...
]
Gail Badner resolved ANN-818.
-----------------------------
Resolution: Fixed
Fixed in trunk, v3_4_0_GA_CP, and v3_3_1_GA_CP.
@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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira