org.hibernate.AssertionFailure: Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Kawu
, 2 years ago
Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo
via xluat.com by Unknown author, 2 years ago
via Hibernate JIRA by Karsten Wutzke, 1 year ago
Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo
via atlassian.net by Unknown author, 2 years ago
Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo
via Hibernate JIRA by Karsten Wutzke, 1 year ago
Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo
org.hibernate.AssertionFailure: Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo
at org.hibernate.cfg.CopyIdentifierComponentSecondPass.doSecondPass(CopyIdentifierComponentSecondPass.java:101)
at org.hibernate.cfg.Configuration.processSecondPassesOfType(Configuration.java:1424)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1388)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1477)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:193)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1096)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:278)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:362)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
at tld.transmuc.Main.main(Main.java:27)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.