mithunk wrote:
The first condition I hav ruled out. About the second even when I give the XDoclet tag @hibernate.timestamp unsaved-value="undefined".This is not being shown in mapping file as u can see.I am using XDoclet 1.2 and ant to generate the mapping files. I think the second condition is probably causing the session to contain stale data.Plz let me know how to get that unsaved-value="undefined" in the mapping file through XDoclet and ant.
I actually write the mapping files and generate the pojo's, never used x-doclet for hibernate.
but try pasting unsaved-value="undefined" into the mapping to confirm that is the problem.
also, I don't know how relevant this is, but I saw a blog that may be related to your problem...
Quote:
@hibernate.version Current release of xdoclet-hibernate-module does not not extract the unsaved-value and access correclty! You have build it
Quote:
form cvs direclty if you you need these attributes for your mapping. (2004-07-15 09:40:22.0) Permalink Comments [0]
copied from
http://www.jroller.com/page/tradem/20040715