Error with


I am working on a Spring Boot application. I want to integrate ObjectDB with Spring Data JPA.

I refer to the to do the configuration. When I start up my application, I got below error. It seems like ObjectDB does not support a generic @ID in the super class. Is this a bug in the ObjectDB? It was totally fine when working with Hibernate or EclipseLink.

Caused by: com.objectdb.o.UserException: Unsupported auto value type for field
at com.objectdb.o.MSG.d(
at com.objectdb.o.MDF.T(
at com.objectdb.o.ANT.W(
at com.objectdb.o.ANT.V(
at com.objectdb.o.SCM.r(
at com.objectdb.o.SCM.r(
at com.objectdb.o.SCM.r(
at com.objectdb.o.TYS.n(
at com.objectdb.jpa.MetamodelImpl.obtainType(
at com.objectdb.jpa.MetamodelImpl.managedType(
... 53 more






This exception can be reproduced by the following simple console application (i.e. without Spring Boot):


import javax.persistence.*;

public final class T1545
    public static void main(String[] args) {

        EntityManagerFactory emf =
        EntityManager em = emf.createEntityManager();

        em.persist(new MyEntity());


    public static class AbstractPersistable<PK extends Serializable>
        @Id @GeneratedValue
        PK id;

    public static class MyEntity extends AbstractPersistable<Long>

Seems that currently ObjectDB does not support a field of generic type (although parameterized) as a primary key. We will check if this ability can be added easily.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login