delpouve wrote:
try without typing your id in your mapping file and don't forget that long (cannot be null) is not the same as Long (can be null).
<id name="id" unsaved-value="null">
<column not-null="false" name="ID"/>
<generator class="native"/>
</id>
Anthony
I have tried this but without any success!!! :-(((
I should be making a trivial mistake as i just want to reference (with my foreign key) a collection of values from a class. (For instance, in a contact table, a country code value which would be referenced from a country table...
Does anybody have any sample like this? plz help me !
thanks a lot! for your time.
jbg