users@glassfish.java.net

Re: Are _at_Transient fields serialized?

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Jul 2007 17:30:21 PDT

Thanks marina,

I did some more investigation - you are correct it is being serialized. Unfortunately there is still a problem. I want to use the @Transient field in the @PrePersist/_at_PreUpdate callback for this entity, and it is at this point that the @Transient field is null.

It would seem that when the em.merge() call is made the transient fields are not available in the @PrePersist callback on the managed entity. Is this correct behaviour?

Thanks
Cameron
[Message sent by forum member 'cameronr' (cameronr)]

http://forums.java.net/jive/thread.jspa?messageID=225847