java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Issues with Hibernate 4.3 to 5.2 upgrade
    via Stack Overflow by Ashu
    ,
    • java.lang.IllegalArgumentException: expecting IdClass mapping at org.hibernate.metamodel.internal.AttributeFactory$3.resolveMember(AttributeFactory.java:971) at org.hibernate.metamodel.internal.AttributeFactory$5.resolveMember(AttributeFactory.java:1029) at org.hibernate.metamodel.internal.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:451) at org.hibernate.metamodel.internal.AttributeFactory.buildIdAttribute(AttributeFactory.java:128) at org.hibernate.metamodel.internal.MetadataContext.buildIdClassAttributes(MetadataContext.java:337) at org.hibernate.metamodel.internal.MetadataContext.applyIdMetadata(MetadataContext.java:269) at org.hibernate.metamodel.internal.MetadataContext.wrapUp(MetadataContext.java:190) at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:219) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:296) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:476) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:707) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:723) at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:504) at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:488)
    No Bugmate found.