You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Patrick Linskey <pl...@gmail.com> on 2007/09/14 17:30:37 UTC
Re: Overwritten Null-Values @ merge
Hi,
Are you running the OpenJPA enhancer? Can you post your
persistence.xml file? Were the null-valued fields non-null when you
detached objects and sent them to the web tier?
-Patrick
On 9/14/07, rené giretzlehner <re...@lbs-logics.com> wrote:
>
> Hi,
>
> I'm using 0.9.7 version.
> My problem is that when I merge detached objects via the entity-manager -
> ALL NULL-values which I set in the web-tier are being replaced by the values
> of the object-fields which are in the database.
> Is this behavior intended? Because it is necessary for me the reset some
> fields from the db-value to NULL again.
>
> Is it possible that I have made a mistake in the jpa-configuration - is
> there a section in the configuration where I can tell jpa to persist the
> NULL-values and NOT to overwrite them with the values from db?
>
> Thanks for your suggestions!
> All the best,
> rené
--
Patrick Linskey
202 669 5907