java.lang.IllegalArgumentException: expecting IdClass mapping

Stack Overflow | Achaius | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.IllegalArgumentException: expecting IdClass mapping

    Stack Overflow | 7 months ago | Achaius
    java.lang.IllegalArgumentException: expecting IdClass mapping

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      expecting IdClass mapping

      at org.hibernate.metamodel.internal.AttributeFactory$3.resolveMember()
    2. org.hibernate.metamodel
      MetamodelImpl.initialize
      1. org.hibernate.metamodel.internal.AttributeFactory$3.resolveMember(AttributeFactory.java:971)
      2. org.hibernate.metamodel.internal.AttributeFactory$5.resolveMember(AttributeFactory.java:1029)
      3. org.hibernate.metamodel.internal.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:451)
      4. org.hibernate.metamodel.internal.AttributeFactory.buildIdAttribute(AttributeFactory.java:128)
      5. org.hibernate.metamodel.internal.MetadataContext.buildIdClassAttributes(MetadataContext.java:337)
      6. org.hibernate.metamodel.internal.MetadataContext.applyIdMetadata(MetadataContext.java:269)
      7. org.hibernate.metamodel.internal.MetadataContext.wrapUp(MetadataContext.java:190)
      8. org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:219)
      8 frames
    3. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:296)
      1 frame
    4. org.hibernate.boot
      SessionFactoryBuilderImpl.build
      1. org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:476)
      1 frame
    5. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:707)
      2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:723)
      2 frames
    6. org.springframework.orm
      LocalSessionFactoryBean.afterPropertiesSet
      1. org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:504)
      2. org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:488)
      2 frames