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 web18

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 stackoverflow
Provided id of the wrong type for class es.model.entities.Poa. Expected: class es.model.entities.PoaPK, got class es.model.entities.AutPK

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 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
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 stackoverflow
Provided id of the wrong type for class kr.ac.jbnu.jinggumdari.model.Interest. Expected: class kr.ac.jbnu.jinggumdari.model.Interest, got class java.lang.String

Solution icon of stackoverflow
Provided id of the wrong type for class com.WirTauschen.model.User. Expected: class java.lang.Long, got class java.lang.String

Solution icon of stackoverflow
Provided id of the wrong type for class com.ruruapps.ibank.domain.Customer. Expected: class java.lang.Long, got class java.lang.String

Solution icon of web
Provided id of the wrong type for class com.ruruapps.ibank.domain.Customer. Expected: class java.lang.Long, got class java.lang.String

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, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago