org.hibernate.TypeMismatchException

Provided id of the wrong type for class com.abccompany.ExtendedMovieVO. Expected: class java.lang.Integer, got class java.lang.String


Solutions on the web54

Solution icon of stackoverflow
Provided id of the wrong type for class com.abccompany.ExtendedMovieVO. Expected: class java.lang.Integer, got class java.lang.String

Solution icon of stackoverflow
Provided id of the wrong type for class com.abcCompany.AddressVO. Expected: class java.lang.Integer, got class java.lang.String

Solution icon of coderanch
via Coderanch by Shaan Shar, 8 months ago
Provided id of the wrong type. Expected: class java.lang.Integer, got class java.lang.String

Solution icon of stackoverflow
Provided id of the wrong type. Expected: class java.lang.Integer, got class java.lang.String

Solution icon of stackoverflow
Provided id of the wrong type for class com.home.hostme.entity.Image. Expected: class java.lang.Long, got class java.lang.Integer

Solution icon of stackoverflow
via Stack Overflow by beechovsky
, 10 months ago
Provided id of the wrong type for class com.myCompany.ourPackage.Program. Expected: class java.lang.Integer, got class java.lang.Long

Solution icon of sourceforge
Provided id of the wrong type for class org.openxava.school.model.Level3a. Expected: class org.openxava.school.model.Level3aId, got class java.lang.Integer

Solution icon of web
Provided id of the wrong type for class co.smartshuffle.DBOM.entities.User. Expected: class java.lang.Long, got class java.lang.Integer

Solution icon of stackoverflow
Provided id of the wrong type for class com.citruspay.common.domain.consumer.ConsumerDetail. Expected: class java.lang.Integer, got class org.hibernate.action.internal.DelayedPostInsertIdentifier

Solution icon of web
Provided id of the wrong type for class com.amergy.cmt.client.server.customds.SimpleUser. Expected: class java.lang.Integer, got class java.lang.Long

Stack trace

  • org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.abccompany.ExtendedMovieVO. Expected: class java.lang.Integer, got class java.lang.String at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:134) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1070) at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:989) at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:716) at org.hibernate.type.EntityType.resolve(EntityType.java:502)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago