Author: gbadner
Date: 2009-04-11 00:41:19 -0400 (Sat, 11 Apr 2009)
New Revision: 16302
Modified:
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/singletable/Music.java
Log:
JBPAPP-1879 ANN-818 - @DiscriminatorFormula for an integer column with default
discriminator type causes failure for DB2/Sybase
Modified:
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/singletable/Music.java
===================================================================
---
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/singletable/Music.java 2009-04-10
23:26:04 UTC (rev 16301)
+++
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/singletable/Music.java 2009-04-11
04:41:19 UTC (rev 16302)
@@ -3,6 +3,8 @@
import javax.persistence.Column;
import javax.persistence.Entity;
+import javax.persistence.DiscriminatorColumn;
+import javax.persistence.DiscriminatorType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@@ -14,6 +16,7 @@
* @author Emmanuel Bernard
*/
@Entity
+(a)DiscriminatorColumn(discriminatorType=DiscriminatorType.INTEGER)
@DiscriminatorFormula("case when zik_type is null then 0 else zik_type end")
@Table(uniqueConstraints = @UniqueConstraint(columnNames = {"avgBeat",
"starred"} ))
public abstract class Music {