I have a table in a MySql database with a datetime
field. This is mapped to my domain object in an hbm.xml
file with a property similar to the following:
<property name="StartDate" column="datStartDate" not-null="true" type="datetime"/>
This all works fine, except MySql doesn't store the millisecond portion of the DateTime field. I don't mind, however, I would like the domain object to be updated to have the exact value that is stored in the database. I'd like to be able to do this within the same session that I use to save the domain object.
Is this possible?