users@glassfish.java.net

Re: Are _at_Transient fields serialized?

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Jul 2007 17:40:47 PDT

Hi Cameron,

merge() merges your entity into an existing managed entity, or is creating a copy of your instance. Unfortunately I can't find any words in the spec that cover what would happen with @Transient fields at that time, so the JPA providers are under no obligation to propagate those values into the managed instance:

[i]3.5.2 Semantics of the Life Cycle Callback Methods for Entities

For entities to which the merge operation has been applied and causes the creation of newly managed instances, the PrePer-sist callback methods will be invoked for the managed instance after the entity state has been copied to it.[/i]

Does it explain your problem?

thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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