Hello,
I'm having another problem with UUID fields. This time it's with the
criteria builder, which cannot be created if an entity contains a UUID
field. Calling EntityManager.getCriteriaBuilder results in the following
error message:
Field "de.test.entity.TestEntity.id" is not recognized by its type code
"38" to be included in the meta model.
at
org.apache.openjpa.persistence.meta.AbstractManagedType.<init>(AbstractManagedType.java:210)
at
org.apache.openjpa.persistence.meta.Types$Identifiable.<init>(Types.java:101)
at org.apache.openjpa.persistence.meta.Types$Entity.<init>(Types.java:209)
at
org.apache.openjpa.persistence.meta.MetamodelImpl.instantiate(MetamodelImpl.java:287)
at
org.apache.openjpa.persistence.meta.MetamodelImpl.find(MetamodelImpl.java:258)
at
org.apache.openjpa.persistence.meta.MetamodelImpl.<init>(MetamodelImpl.java:94)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.getMetamodel(EntityManagerFactoryImpl.java:426)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.getCriteriaBuilder(EntityManagerFactoryImpl.java:407)

Attached is a small test program.

Best regards,
Malte

Attachment: openjpauuid.7z
Description: application/compressed

Reply via email to