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]

Samebug tips0

We couldn't find tips for this exception.

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

Stack trace

  • 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(ClassMetaData.java:1942) at org.apache.openjpa.meta.ClassMetaData.validateAppIdClass(ClassMetaData.java:1836) at org.apache.openjpa.meta.ClassMetaData.validateIdentity(ClassMetaData.java:1775) at org.apache.openjpa.meta.ClassMetaData.validateMeta(ClassMetaData.java:1692)

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

We couldn't find other users who have seen this exception.