Hi everyone, I m facing this problem from some days, i have an object that has 2 identifier, an auincrement ID, and a date HBM: <hibernate-mapping> <class name="dao.Equipement" table="equipement" catalog="noteflex"> <composite-id name="id" class="dao.EquipementId"> <key-property name="equipementId" type="java.lang.Long" > <column name="equipement_id" /> </key-property> <key-property name="equipementDateMaj" type="timestamp"> <column name="equipement_date_maj" length="0" /> </key-property> </composite-id> </hibernate-mapping>
when i save and equipement object equipementId null and equipement_date_maj null, too, in the database everithing is fine i get a new ID and the date is set to NOW but in my application the Serialisable returned value of SAVE method as equipementId set to null and equipement_date_maj to null too. help please
|