Created
June 13, 2021 19:11
-
-
Save evrentan/897d8e865868d2493aa33d1706823e1d to your computer and use it in GitHub Desktop.
StudentEntity
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.entity; | |
import lombok.EqualsAndHashCode; | |
import lombok.Getter; | |
import lombok.Setter; | |
import lombok.ToString; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
import java.io.Serializable; | |
import java.util.List; | |
@Getter @Setter | |
@ToString | |
@EqualsAndHashCode | |
@Document(collection = "student") | |
public class StudentEntity implements Serializable { | |
@Id | |
private String id; | |
private String name; | |
private List<LectureEntity> lectureList; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment