We're updating the issue view to help you get more done. 

ImplicitNamingStrategyComponentPathImpl generates wrong column name

Description

I have below entity. I expected "name" property mapped to "name" column. But hibernate generated wrong column name. If I use default naming strategy it works fine.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Entity @IdClass(WebSiteModule.PK.class) @Table(name = "websiteModule") public class WebSiteModule implements Serializable { @Id private String name; @Id @ManyToOne private WebSite site; public static class PK implements Serializable{ private String name; private Integer site; public PK() { } public PK(String name, Integer site) { this.name = name; this.site = site; } } }
1 2 3 select websitemod0_.id_name as id_name1_20_, websitemod0_.id_site_id as id_site_5_20_, websitemod0_._identifierMapper_name as _identif2_20_, websitemod0_._identifierMapper_site_id as _identif6_20_ from websiteModule websitemod0_ where websitemod0_._identifierMapper_site_id=?

Environment

None

Status

Assignee

Unassigned

Reporter

HM

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

5.1.2

Priority

Major