-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Merging null values
PostPosted: Wed Feb 03, 2016 12:13 pm 
Newbie

Joined: Tue Nov 24, 2015 3:52 pm
Posts: 12
Hi,

I was wondering if there's a way with the JPA API to specify a strategy for merging entities ?
For example could we say to the EntityManager to merge only non null values (cf.
http://stackoverflow.com/questions/7473 ... ull-values)

thanks


Top
 Profile  
 
 Post subject: Re: Merging null values
PostPosted: Thu Feb 04, 2016 2:56 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
The merge operation copies all properties from the detached enitty onto the managed entity instance. If you want more control, you need either a manual approach or an automated reflection-based utility.


Top
 Profile  
 
 Post subject: Re: Merging null values
PostPosted: Thu Apr 14, 2016 3:33 am 
Newbie

Joined: Tue Nov 24, 2015 3:52 pm
Posts: 12
Thanks !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.