Author: gbadner
Date: 2009-04-10 16:07:37 -0400 (Fri, 10 Apr 2009)
New Revision: 16294
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/joined/Document.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/union/Document.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/query/Chaos.java
Log:
JBPAPP-1073 : Annotations - Oracle - "size" is reserved in Oracle
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/joined/Document.java
===================================================================
---
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/joined/Document.java 2009-04-10
19:17:45 UTC (rev 16293)
+++
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/joined/Document.java 2009-04-10
20:07:37 UTC (rev 16294)
@@ -12,7 +12,7 @@
@Entity
@ForeignKey(name = "FK_DOCU_FILE")
public class Document extends File {
- @Column(nullable = false)
+ @Column(nullable = false, name="xsize")
private int size;
Document() {
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/union/Document.java
===================================================================
---
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/union/Document.java 2009-04-10
19:17:45 UTC (rev 16293)
+++
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/inheritance/union/Document.java 2009-04-10
20:07:37 UTC (rev 16294)
@@ -1,6 +1,7 @@
//$Id$
package org.hibernate.test.annotations.inheritance.union;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@@ -20,6 +21,7 @@
this.size = size;
}
+ @Column(name="xsize")
public int getSize() {
return size;
}
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/query/Chaos.java
===================================================================
---
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/query/Chaos.java 2009-04-10
19:17:45 UTC (rev 16293)
+++
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/query/Chaos.java 2009-04-10
20:07:37 UTC (rev 16294)
@@ -24,7 +24,7 @@
@Entity
@Table(name="CHAOS")
@SQLInsert( sql="INSERT INTO CHAOS(name, nick_name, chaos_size, id)
VALUES(upper(?),?,?,?)")
-@SQLUpdate( sql="UPDATE CHAOS SET name = upper(?), nick_name = ?, cha0s_size = ?
WHERE id = ?")
+@SQLUpdate( sql="UPDATE CHAOS SET name = upper(?), nick_name = ?, chaos_size = ?
WHERE id = ?")
@SQLDelete( sql="DELETE CHAOS WHERE id = ?")
@SQLDeleteAll( sql="DELETE CHAOS")
@Loader(namedQuery = "chaos")
Show replies by date