ca.gc.aafc.dina.dto.ExternalRelationDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
package ca.gc.aafc.dina.dto;
import org.javers.core.metamodel.annotation.TypeName;
import org.javers.core.metamodel.annotation.Value;
import io.crnk.core.resource.ResourceTypeHolder;
import io.crnk.core.resource.annotations.JsonApiId;
import io.crnk.core.resource.annotations.JsonApiResource;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonApiResource(type = "external-type")
@Value // This class is considered a "value" belonging to a parent DTO.
@TypeName(ExternalRelationDto.TYPENAME)
public class ExternalRelationDto implements ResourceTypeHolder {
public static final String TYPENAME = "external-relation";
public static final String ID_FIELD_NAME = "id";
@JsonApiId
private String id;
private String type;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy