Insertion Blob + Hibernate
Bonjour à tous. Je developpe une application swing + spring + hibernate et je désire enregistrer une photo dans un blob sous oracle 10g. mais j'obtiens une erreur du genre :
java.lang.ClassCastException: org.hibernate.lob.SerializableBlob cannot be cast to java.lang.String
pourtant mon champ photo est de type blob dans la base BD et mon fichier hbm contient ceci :
<property name="photo" type="blob">
<column name="PHOTO" />
</property>
puis mon bean : private Blob photo;
Ca fait des jours et des nuits que je suis bloqué :cry:
Quelqu'un peut-il l'aider?
Merci