I'm spent. I've looked everywhere (including the Hibernate reference material), but can't find anything on this.
I have the following mapping of a property
Code:
<property name="CaseNumber" type="Int32" update="false" insert="false">
<column name="CaseNumber" sql-type="int" not-null="false"/>
</property>
The database column "CaseNumber" is NOT the key in the table, but has an Identity seed (which means that the integer is counted up on every insert).
When I saves the object I don't give it any value (and since it's an int I guess that the uninitialized value is 0), and the insert to the database is done correctly. But when I then look at the value after the save, the value is of course still 0. Isn't there a way for me to get the value syncronized with the object?
Thanx