Author: epbernard
Date: 2007-01-16 20:11:37 -0500 (Tue, 16 Jan 2007)
New Revision: 11053
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/cfg/Ejb3JoinColumn.java
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/manytoone/Lens.java
Log:
ANN-515 use quoted name when copying join columns
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/cfg/Ejb3JoinColumn.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/cfg/Ejb3JoinColumn.java 2007-01-17
00:40:54 UTC (rev 11052)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/cfg/Ejb3JoinColumn.java 2007-01-17
01:11:37 UTC (rev 11053)
@@ -314,7 +314,8 @@
*/
public void linkValueUsingAColumnCopy(Column column, SimpleValue value) {
initMappingColumn(
- column.getName(),
+ //column.getName(),
+ column.getQuotedName(),
null, column.getLength(),
column.getPrecision(),
column.getScale(),
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/manytoone/Lens.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/manytoone/Lens.java 2007-01-17
00:40:54 UTC (rev 11052)
+++
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/manytoone/Lens.java 2007-01-17
01:11:37 UTC (rev 11053)
@@ -21,7 +21,7 @@
@Formula("(1/focal)")
private float length;
@ManyToOne()
- @JoinColumn(name="frame_fk", referencedColumnName = "name")
+ @JoinColumn(name="`frame_fk`", referencedColumnName = "name")
private Frame frame;
public Long getId() {
Show replies by date