JBPAPP-1073 : Annotations - Oracle - "size" is reserved in Oracle

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16294 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gail Badner 2009-04-10 20:07:37 +00:00
parent 0dd8cf112f
commit 7d36b9dfd3
3 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import org.hibernate.annotations.ForeignKey;
@Entity
@ForeignKey(name = "FK_DOCU_FILE")
public class Document extends File {
@Column(nullable = false)
@Column(nullable = false, name="xsize")
private int size;
Document() {

View File

@ -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 @@ public class Document extends File {
this.size = size;
}
@Column(name="xsize")
public int getSize() {
return size;
}

View File

@ -24,7 +24,7 @@ import org.hibernate.annotations.Loader;
@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")