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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by javadoc, 10 months ago
Provided id of the wrong type. Expected: class java.lang.Integer, got class de.thomasdaily.project.tdpublic.enums.FieldGroup
via Stack Overflow by Andrea
, 1 year ago
Provided id of the wrong type for class delidete.domain.Datigeneralipareretecnico. Expected: class delidete.domain.DatigeneralipareretecnicoPK, got class delidete.domain.DatigeneralivistocontabilePK
via genuitec.com by Unknown author, 1 year ago
Provided id of the wrong type for class delidete.domain.Datigeneralipareretecnico. Expected: class delidete.domain.DatigeneralipareretecnicoPK, got class delidete.domain.DatigeneralivistocontabilePK
via Coderanch by Shaan Shar, 11 months ago
Provided id of the wrong type. Expected: class java.lang.Integer, got class java.lang.String
via boyunjian.com by Unknown author, 1 year ago
Provided id of the wrong type for class com.uitest.domain.Product. Expected: class java.lang.Long, got class java.lang.String
via verydemo.com by Unknown author, 2 years ago
Provided id of the wrong type for class com.uitest.domain.Product. Expected: class java.lang.Long, got class java.lang.String
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(DefaultLoadEventListener.java:86)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:882)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:557)
at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:196)
at org.hibernate.collection.PersistentSet.initializeFromCache(PersistentSet.java:124)
at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:136)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1720)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.