Skip to content

Instantly share code, notes, and snippets.

@susimsek
Created March 13, 2022 19:46
Show Gist options
  • Save susimsek/623d632efdc78828bd10a8b310b919c2 to your computer and use it in GitHub Desktop.
Save susimsek/623d632efdc78828bd10a8b310b919c2 to your computer and use it in GitHub Desktop.
Spring boot Hateoas RepresentationModel
@Schema(name="Capability", description = "Capability")
@FieldDefaults(level = AccessLevel.PRIVATE)
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Relation(collectionRelation = "capabilities")
@Builder
public class CapabilityDto extends RepresentationModel<CapabilityDto> {
@Schema(description = "Unique identifier of the Capability.", example = "1", required = true)
Long id;
@Schema(description = "Name of the Technology Stack.", example = "JavaEE", required = true)
String techStack;
@Schema(description = "Num of the Developers.", example = "20", required = true)
Integer numOfDevelopers;
@Schema(description = "Num of the Available Developers.", example = "10", required = true)
Integer numOfAvailableDevelopers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment