Hibernate version = 2.0.3
mapping document =
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="org.jboss.nukes.core.themes.themeAlter.Couleur" table="alter_theme_couleur">
<id name="idCouleur" type="string" unsaved-value="null" >
<column name="idCouleur" sql-type="varchar(45)" not-null="true"/>
<generator class="uuid.hex"/>
</id>
<property name="labelCouleur" column="labelCouleur" type="string" length="255" not-null="false"/>
<property name="valCouleur" column="valCouleur" type="string" length="45" not-null="false"/>
<property name="valImage" column="valImage" type="blob" not-null="false"/>
</class>
</hibernate-mapping>
My database = MySQL 4.0
There is my problem :
I change the property named valImage in my object named Couleur, and I want to update my database with this object.
My blob valImage in my object is ok, but the database isn't updated.
It is updated if I changed the value of the property named valCouleur !!
In my HibernateProperties file the hibernate.jdbc.use_streams_for_binary property is true.
Someone can tell me why? and help me to debug this problem !
Thanks a lot in advanced.