Hi Marina,
I did have a look at 3.5.2 - As you say, there is no mention of ignoring @Transient variables during the copy to the managed instance, nor is there mention of copying them. A bit of a grey area.
To me it seems like a defect - it reduces the usefulness of @Transient fields if they aren't available during a prePersist. Just because I don't want the data in the database doesn't mean it should be discarded.
I can work around it, but it reduces the encapsulation of my entity object.
Cheers
Cameron
[Message sent by forum member 'cameronr' (cameronr)]
http://forums.java.net/jive/thread.jspa?messageID=225866