Skip to content

Conversation

@stefano-rughetti-nttdata
Copy link
Collaborator

No description provided.

@sonarqubecloud
Copy link

private String pr;
@ToString.Exclude @Getter(onMethod=@__({@DynamoDbAttribute(COL_COUNTRY)}))
private String country;
@ToString.Exclude @Getter(onMethod=@__({@DynamoDbAttribute(COL_ATTEMPT)}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefano-rughetti-nttdata Il @ToString.Exclude è inutile nei nuovi campi.

Inoltre eliminerei il ToString.Exclude anche per pr, city, city2, country

)
.map(response -> {
log.debug("{} paperRequestId:{} paperAddressId:{}", EXIT_LOG, response.getPaperRequestId(), response.getAddressId());
return ResponseEntity.ok(ControllerMapper.createPaperAddressResponse(response));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefano-rughetti-nttdata più giusto che il mapping lo faccia il service.

public class ControllerMapper {
public static PaperAddressResponse createPaperAddressResponse(PaperAddressEntity entity) {
return new PaperAddressResponse()
.paperAddressId(entity.getAddressId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefano-rughetti-nttdata eliminerei questa classe e farei restituire al service direttamente l'Id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants