All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.gc.aafc.dina.dto.JsonApiPartialPatchDto Maven / Gradle / Ivy

There is a newer version: 0.132
Show newest version
package ca.gc.aafc.dina.dto;

import java.util.UUID;
import lombok.Getter;

import org.apache.commons.beanutils.LazyDynaBean;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.toedter.spring.hateoas.jsonapi.JsonApiId;

/**
 * Special DTO used to received partial PATCH in JSON:API.
 * It stores properties using a LazyDynaBean to make sure we can distinguish between null and
 * value not provided (which we should leave untouched in JSON:API).
 */
public class JsonApiPartialPatchDto extends LazyDynaBean {

  @JsonApiId
  @Getter
  private UUID id;

  @Override
  @JsonAnySetter
  public void set(String name, Object value) {
    super.set(name, value);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy