File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
hibernate-core/src/main/java/org/hibernate/boot/model/naming Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
package org .hibernate .boot .model .naming ;
8
8
9
+ import org .hibernate .dialect .Dialect ;
10
+
9
11
/**
10
12
* Implementation of the ImplicitNamingStrategy contract which conforms to the
11
13
* naming rules initially implemented by Hibernate for JPA 1.0, prior to many
@@ -68,17 +70,16 @@ public Identifier determineJoinColumnName(ImplicitJoinColumnNameSource source) {
68
70
// name = transformAttributePath( source.getAttributePath() );
69
71
// }
70
72
// else if ( source.getNature() == ImplicitJoinColumnNameSource.Nature.ELEMENT_COLLECTION
71
-
72
73
if ( source .getNature () == ImplicitJoinColumnNameSource .Nature .ELEMENT_COLLECTION
73
74
|| source .getAttributePath () == null ) {
74
75
name = source .getReferencedTableName ().getText ()
75
76
+ '_'
76
- + source .getReferencedColumnName ();
77
+ + source .getReferencedColumnName (). getText () ;
77
78
}
78
79
else {
79
80
name = transformAttributePath ( source .getAttributePath () )
80
81
+ '_'
81
- + source .getReferencedColumnName ();
82
+ + source .getReferencedColumnName (). getText () ;
82
83
}
83
84
84
85
return toIdentifier ( name , source .getBuildingContext () );
You can’t perform that action at this time.
0 commit comments