I am facing a stange problem.
I have createdDate method as java.util.Date. However, in the hbm mapping, I define it as type "timestamp". I am trying to insert a graph of objects (bidirectional using Set) with Flush mode as commit. Each of these objects have the createdDate set/get
I have an Interceptor that sets createdDate in the onSave method.
The inserts work fine if i define the mapping type as either "date" or "time". However, when I define it as timestamp, I start getting errors.
Somehow the foreigh key constraint is broken for the object graph.
Has anyone faced this kind of problem ?
Thanks
Shishir
|