|
A JoinColumn like the following:
@ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="\"NAME#\"", insertable=false, updatable=false) private OutTx transaction;
will result in:
org.hibernate.DuplicateMappingException: Table [XYZ contains phyical column name `NAME#` represented by different logical column names: `NAME#`, "NAME#"
It seems like these lines in EJB3JoinColumn.addColumnBinding() won't replace the mapping with backticks:
if ( StringHelper.isQuoted( getLogicalColumnName() ) || StringHelper.isQuoted( getLogicalColumnName() ) ) { logicalColumnName = StringHelper.quote( logicalColumnName ); }
|