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 | 9 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    @IdClass with Timestamp value

    Oracle Community | 9 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