| https://github.com/hibernate/hibernate-orm/pull/1961 The root cause is that by using ImplicitNamingStrategyComponentPathImpl strategy, the internal place holder "collection&&element" which is part of the attribute path will be also taken as the part of the join column name. The fix is just like what Ejb3Column did, in Ejb3JoinColumn:buildDefaultColumnName(), remove the place holder string "collection&&element" if it exist, and of course, only for the owner side. Also add UT cases for this scenario. |