File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
modules/processor/src/main/java/uk/gov/hmcts/reform/migration/ccd Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ Package offers base domain classes for standardised case data structures such as
2424Assuming that you have Java project scaffolding please include framework artifact as a project dependency by adding following line:
2525
2626``` groovy
27- compile group: 'uk.gov.hmcts.reform.ccd-case-migration', name: 'processor', version: '1.0 .0'
27+ compile group: 'uk.gov.hmcts.reform.ccd-case-migration', name: 'processor', version: '1.1 .0'
2828```
2929
3030If you want to take advantages of standard domain classes please also include domain artifact as a project dependency by adding following line:
3131
3232``` groovy
33- compile group: 'uk.gov.hmcts.reform.ccd-case-migration', name: 'domain', version: '1.0 .0'
33+ compile group: 'uk.gov.hmcts.reform.ccd-case-migration', name: 'domain', version: '1.1 .0'
3434```
3535
3636Having done above please create class that implements ` uk.gov.hmcts.reform.migration.service.DataMigrationService ` interface in similar way as shown below:
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ subprojects {
1111 apply plugin : ' com.jfrog.bintray'
1212
1313 group = ' uk.gov.hmcts.reform.ccd-case-migration'
14- version = ' 1.0 .0'
14+ version = ' 1.1 .0'
1515
1616 sourceCompatibility = ' 11'
1717 targetCompatibility = ' 11'
Original file line number Diff line number Diff line change 1+ package uk .gov .hmcts .reform .migration .ccd ;
2+
3+ import com .fasterxml .jackson .annotation .JsonInclude ;
4+ import com .fasterxml .jackson .databind .ObjectMapper ;
5+ import org .springframework .context .annotation .Bean ;
6+ import org .springframework .context .annotation .Configuration ;
7+ import org .springframework .http .converter .json .MappingJackson2HttpMessageConverter ;
8+
9+ @ Configuration
10+ public class HttpMessageConverterConfiguration {
11+ @ Bean
12+ public MappingJackson2HttpMessageConverter converter (ObjectMapper mapper ) {
13+ mapper .setSerializationInclusion (JsonInclude .Include .NON_NULL );
14+ return new MappingJackson2HttpMessageConverter (mapper );
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments