Skip to content

Instantly share code, notes, and snippets.

@evrentan
Created June 13, 2021 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evrentan/3109045c5e78e39ab36cc30da2df1afe to your computer and use it in GitHub Desktop.
Save evrentan/3109045c5e78e39ab36cc30da2df1afe to your computer and use it in GitHub Desktop.
Student DTO
package com.tan.myhateoasexample.dto;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.hateoas.RepresentationModel;
import java.io.Serializable;
import java.util.List;
@Getter @Setter
@EqualsAndHashCode(callSuper = false)
@ToString
public class Student extends RepresentationModel<Student> implements Serializable {
private String id;
private String name;
private List<Lecture> lectureList;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment