Created
June 13, 2021 19:12
-
-
Save evrentan/3109045c5e78e39ab36cc30da2df1afe to your computer and use it in GitHub Desktop.
Student DTO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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