bonsoir,
j'ai un problème dans mon code jee (jsp) avec spring et hibernate dans ce ligne:
Employe e = (Employe) session.get(Employe.class, pw);
si pw de type long alors mon application ça marche
bien mais si de type string il m'affiche cette erreur:
" Request processing failed; nested exception is org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.Long, got class java.lang.String "
Je besoin que le pw soit de type string et n'est pas long.
merci d'avance.
Partager