Author: epbernard
Date: 2008-08-13 11:32:32 -0400 (Wed, 13 Aug 2008)
New Revision: 15049
Modified:
annotations/trunk/src/test/org/hibernate/test/annotations/entity/Ransom.java
annotations/trunk/src/test/org/hibernate/test/annotations/entitynonentity/Interaction.java
annotations/trunk/src/test/org/hibernate/test/annotations/indexcoll/Version.java
annotations/trunk/src/test/org/hibernate/test/annotations/inheritance/joined/File.java
Log:
JBPAPP-1072 fix name: Oracle does not like date/number fields
Modified: annotations/trunk/src/test/org/hibernate/test/annotations/entity/Ransom.java
===================================================================
---
annotations/trunk/src/test/org/hibernate/test/annotations/entity/Ransom.java 2008-08-13
15:28:17 UTC (rev 15048)
+++
annotations/trunk/src/test/org/hibernate/test/annotations/entity/Ransom.java 2008-08-13
15:32:32 UTC (rev 15049)
@@ -50,7 +50,7 @@
public void setAmount(MonetaryAmount amount) {
this.amount = amount;
}
-
+ @Column(name="ransom_date")
public Date getDate() {
return date;
}
Modified:
annotations/trunk/src/test/org/hibernate/test/annotations/entitynonentity/Interaction.java
===================================================================
---
annotations/trunk/src/test/org/hibernate/test/annotations/entitynonentity/Interaction.java 2008-08-13
15:28:17 UTC (rev 15048)
+++
annotations/trunk/src/test/org/hibernate/test/annotations/entitynonentity/Interaction.java 2008-08-13
15:32:32 UTC (rev 15049)
@@ -2,11 +2,13 @@
package org.hibernate.test.annotations.entitynonentity;
import javax.persistence.MappedSuperclass;
+import javax.persistence.Column;
/**
* @author Emmanuel Bernard
*/
@MappedSuperclass
public class Interaction {
+ @Column(name="int_nbr")
public int number;
}
Modified:
annotations/trunk/src/test/org/hibernate/test/annotations/indexcoll/Version.java
===================================================================
---
annotations/trunk/src/test/org/hibernate/test/annotations/indexcoll/Version.java 2008-08-13
15:28:17 UTC (rev 15048)
+++
annotations/trunk/src/test/org/hibernate/test/annotations/indexcoll/Version.java 2008-08-13
15:32:32 UTC (rev 15049)
@@ -38,6 +38,7 @@
this.codeName = codeName;
}
+ @Column(name="version_nbr")
public String getNumber() {
return number;
}
Modified:
annotations/trunk/src/test/org/hibernate/test/annotations/inheritance/joined/File.java
===================================================================
---
annotations/trunk/src/test/org/hibernate/test/annotations/inheritance/joined/File.java 2008-08-13
15:28:17 UTC (rev 15048)
+++
annotations/trunk/src/test/org/hibernate/test/annotations/inheritance/joined/File.java 2008-08-13
15:32:32 UTC (rev 15049)
@@ -6,6 +6,7 @@
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
+import javax.persistence.Column;
/**
* @author Emmanuel Bernard
@@ -13,7 +14,7 @@
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class File {
- @Id
+ @Id @Column(name="filename")
private String name;
@ManyToOne
private Folder parent;
Show replies by date