diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java index ea258d0f8..9652f5d2b 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java @@ -37,7 +37,7 @@ public abstract class AbstractSQLServerDictionary extends DBDictionary { public AbstractSQLServerDictionary() { - reservedWordSet.addAll(Arrays.asList(new String[]{ "FILE", "INDEX", "RULE" })); + reservedWordSet.addAll(Arrays.asList(new String[]{ "FILE", "INDEX" })); systemTableSet.add("DTPROPERTIES"); validationSQL = "SELECT GETDATE()"; rangePosition = RANGE_POST_DISTINCT; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/entities/Rider.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/entities/Rider.java index e97b8c6b4..6974736d0 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/entities/Rider.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/entities/Rider.java @@ -25,8 +25,10 @@ import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; +import javax.persistence.Table; @Entity +@Table(name="RIDER_ANNUITY") @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_TS")) public class Rider extends AnnuityPersistebleObject implements IRider { private static final long serialVersionUID = 2088116709551706187L; @@ -42,6 +44,8 @@ public class Rider extends AnnuityPersistebleObject implements IRider { public void setEffectiveDate(Date effectiveDate) { this.effectiveDate = effectiveDate; } + + @Column(name="RIDER_RULE") public String getRule() { return rule; }