public class DomainObjectMerger extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DomainObjectMerger.NullHandlingPolicy
Strategy to express whether null values should be ignored or set on the target domain object.
|
Constructor and Description |
---|
DomainObjectMerger(org.springframework.data.repository.support.Repositories repositories,
org.springframework.core.convert.ConversionService conversionService)
|
Modifier and Type | Method and Description |
---|---|
void |
merge(Object from,
Object target,
DomainObjectMerger.NullHandlingPolicy nullPolicy)
Merges the given target object into the source one.
|
@Autowired public DomainObjectMerger(org.springframework.data.repository.support.Repositories repositories, org.springframework.core.convert.ConversionService conversionService)
repositories
- must not be null.conversionService
- must not be null.public void merge(Object from, Object target, DomainObjectMerger.NullHandlingPolicy nullPolicy)
from
- can be null.target
- can be null.nullPolicy
- how to handle null values in the source object.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.