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 | 1 decade 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

    Primary-Key support for java.util.UUID

    Oracle Community | 1 decade 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 | 6 months 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.

    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