java.lang.UnsupportedOperationException: not a valid id type

Hibernate JIRA | Kelly Campbell | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      not a valid id type

      at org.hibernate.type.CharacterType.getDefaultValue()
    2. Hibernate
      SingleTableEntityPersister.<init>
      1. org.hibernate.type.CharacterType.getDefaultValue(CharacterType.java:20)
      2. org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:48)
      3. org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
      4. org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:114)
      5. org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:418)
      6. org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
      6 frames
    3. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
      2. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
      2 frames
    4. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
      1 frame
    5. Hibernate EJB
      Ejb3Configuration.createEntityManagerFactory
      1. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
      2. org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
      3. org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
      4. org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
      4 frames