org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.Integer, got class de.thomasdaily.project.tdpublic.enums.FieldGroup

Google Groups | javadoc | 8 years ago
  1. 0

    Exception from handling Maps with MapKey Type of Enum

    Google Groups | 8 years ago | javadoc
    org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.Integer, got class de.thomasdaily.project.tdpublic.enums.FieldGroup
  2. 0

    org.hibernate.TypeMismatchException: Provided id of the wrong type

    Stack Overflow | 5 years ago | Andrea
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class delidete.domain.Datigeneralipareretecnico. Expected: class delidete.domain.DatigeneralipareretecnicoPK, got class delidete.domain.DatigeneralivistocontabilePK
  3. 0

    org.hibernate.TypeMismatchException: id of the wrong type - Genuitec

    genuitec.com | 5 months ago
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class delidete.domain.Datigeneralipareretecnico. Expected: class delidete.domain.DatigeneralipareretecnicoPK, got class delidete.domain.DatigeneralivistocontabilePK
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Community • View topic - Provided id of the wrong type. Expected: Long got Integer

    hibernate.org | 6 months ago
    org.springframework.orm.hibernate3.HibernateSystemException: Provided id of the wrong type. Expected: class java.lang.Long, got class java.lang.Integer; nested exception is org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.Long, got class java.lang.Integer
  6. 0

    Hibernate throwing org.hibernate.TypeMismatchException - Java - Codecall

    codecall.net | 1 year ago
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class co.smartshuffle.DBOM.entities.User. Expected: class java.lang.Long, got class java.lang.Integer

    1 unregistered visitors
    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.hibernate.TypeMismatchException

      Provided id of the wrong type. Expected: class java.lang.Integer, got class de.thomasdaily.project.tdpublic.enums.FieldGroup

      at org.hibernate.event.def.DefaultLoadEventListener.onLoad()
    2. Hibernate
      SessionImpl.internalLoad
      1. org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:86)
      2. org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:882)
      3. org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:850)
      3 frames
    3. Hibernate
      ManyToOneType.assemble
      1. org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:557)
      2. org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:196)
      2 frames
    4. Hibernate
      PersistentSet.toArray
      1. org.hibernate.collection.PersistentSet.initializeFromCache(PersistentSet.java:124)
      2. org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35)
      3. org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:136)
      4. org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48)
      5. org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1720)
      6. org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
      7. org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
      8. org.hibernate.collection.PersistentSet.toArray(PersistentSet.java:171)
      8 frames