org.hibernate.AssertionFailure

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web170

  • 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
  • Unexpected nested component on the referenced entity when mapping a @MapsId: tld.transmuc.model.Foo
  • Stack trace

    • 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.cfg.Configuration.buildMappings(Configuration.java:1345) 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 org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32) at tld.transmuc.Main.main(Main.java:27)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago