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]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 666705, 1 year ago
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
via Coderanch by Joe Dams, 1 year ago
The id class specified by type "class org.orphee.gps.beans.entity.LastAlarmRaised" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, including pk field types. Mismatched property: "box"
via coderanch.com by Unknown author, 2 years ago
The id class specified by type "class org.orphee.gps.beans.entity.LastAlarmRaised" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, including pk field types. Mismatched property: "box"
via Stack Overflow by Joe
, 2 years ago
The id class specified by type "class org.orphee.gps.beans.entity.LastAlarmRaised" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, including pk field types. Mismatched property: "box"
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.