org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.String, got class org.openxava.qamanager.model.Department
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 openxava by janesh
, 1 year agovia Coderanch by Shaan Shar, 1 year ago
via boyunjian.com by Unknown author, 2 years ago
via verydemo.com by Unknown author, 2 years ago
via smartclient.com by Unknown author, 2 years ago
via genuitec.com by Unknown author, 1 year ago
org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.String, got class org.openxava.qamanager.model.Department
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:86)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
at org.openxava.qamanager.test.DesignationsTest.getDepartmentName(DesignationsTest.java:88)
at org.openxava.qamanager.test.DesignationsTest.testCreateReadUpdateDelete(DesignationsTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)