org.apache.openjpa.util.MetaDataException: Type "class testkodo.Pig" declares field "id" as a primary key, but keys of type "java.util.UUID" are not supported.

Oracle Community | 666705 | 10 years ago
  1. 0

    Primary-Key support for java.util.UUID

    Oracle Community | 10 years ago | 666705
    org.apache.openjpa.util.MetaDataException: Type "class testkodo.Pig" declares field "id" as a primary key, but keys of type "java.util.UUID" are not supported.
  2. 0

    Spring mvc weblogic 10.3.6 jpa @idclass error

    Stack Overflow | 1 week ago | user3712581
    org.apache.openjpa.util.MetaDataException: Type "class eusurvey.modelA.daos.EncuestaSem" with application identity and no superclass does not declare an id class. This type is not eligible for builtin identity, so it must declare an id class.
  3. 0

    EntityBeans 3: BigDecimal as PrimaryKey ...

    Oracle Community | 9 years ago | 666705
    org.apache.openjpa.util.MetaDataException: Type "class ejb3.Ejb UserEntity" declares field "userid" as a primary key, but keys of type "java.math.BigDecimal" are n t supported.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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]
  6. 0

    OPENJPA - The id class specified by type does not match the primary key fields of the class

    Stack Overflow | 3 years ago | Joe
    org.apache.openjpa.util.MetaDataException: 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"

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.openjpa.util.MetaDataException

      Type "class testkodo.Pig" declares field "id" as a primary key, but keys of type "java.util.UUID" are not supported.

      at org.apache.openjpa.meta.ClassMetaData.validateAppIdClass()
    2. OpenJPA Aggregate Jar
      ClassMetaData.validateIdentity
      1. org.apache.openjpa.meta.ClassMetaData.validateAppIdClass(ClassMetaData.java:1796)
      2. org.apache.openjpa.meta.ClassMetaData.validateIdentity(ClassMetaData.java:1775)
      2 frames