org.apache.openjpa.util.MetaDataException: The id class specified by type "class com.lifelinesys.hsrm.persistence.model.EimHsrSchedule" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, that the access types are the same, and if you are getting this error at runtime, that you have your persistent class since last compiling your identity class. FailedObject: setCalendarDate [java.lang.String]

Oracle Community | 666705 | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    @IdClass with Timestamp value

    Oracle Community | 10 years ago | 666705
    org.apache.openjpa.util.MetaDataException: The id class specified by type "class com.lifelinesys.hsrm.persistence.model.EimHsrSchedule" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, that the access types are the same, and if you are getting this error at runtime, that you have your persistent class since last compiling your identity class. FailedObject: setCalendarDate [java.lang.String]

    Root Cause Analysis

    1. org.apache.openjpa.util.MetaDataException

      The id class specified by type "class com.lifelinesys.hsrm.persistence.model.EimHsrSchedule" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, that the access types are the same, and if you are getting this error at runtime, that you have your persistent class since last compiling your identity class. FailedObject: setCalendarDate [java.lang.String]

      at org.apache.openjpa.meta.ClassMetaData.validateAppIdClassPKs()
    2. OpenJPA Aggregate Jar
      ClassMetaData.validateMeta
      1. org.apache.openjpa.meta.ClassMetaData.validateAppIdClassPKs(ClassMetaData.java:1942)
      2. org.apache.openjpa.meta.ClassMetaData.validateAppIdClass(ClassMetaData.java:1836)
      3. org.apache.openjpa.meta.ClassMetaData.validateIdentity(ClassMetaData.java:1775)
      4. org.apache.openjpa.meta.ClassMetaData.validateMeta(ClassMetaData.java:1692)
      4 frames