Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2
I hope the answer to this isn't too obvious, I have searched, (note, yes i'm a hibernate newbie) :)
I've have a database field which is filled out by my database (via a default value), how can I get the value of this back after I save my hibernate object?
I currently have the field mapped as
Code:
<property name="dateCreated" type="date" not-null="false" update="false" insert="false">
<column name="date_created" />
</property>
Straight after saving my object to the database I would like to be able to access this field, however it is of course "null".
Anyone know how I can implement this? or am I restricted to refetching my object manually if I want to access this field?
Cheers.
Matt.