Author: gbadner
Date: 2009-04-06 16:51:40 -0400 (Mon, 06 Apr 2009)
New Revision: 16266
Modified:
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/joined/File.java
Log:
JBPAPP-1069 : Annotations - MSSQL/Oracle - Reserved word "File" causes test to
fail
Modified:
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/joined/File.java
===================================================================
---
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/joined/File.java 2009-04-06
20:29:19 UTC (rev 16265)
+++
annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/inheritance/joined/File.java 2009-04-06
20:51:40 UTC (rev 16266)
@@ -6,14 +6,17 @@
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
+import javax.persistence.Column;
+import javax.persistence.Table;
/**
* @author Emmanuel Bernard
*/
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
+@Table(name="joined_file")
public abstract class File {
- @Id
+ @Id @Column(name="filename")
private String name;
@ManyToOne
private Folder parent;