Skip to content

Instantly share code, notes, and snippets.

@evrentan
Created June 13, 2021 19:11
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/897d8e865868d2493aa33d1706823e1d to your computer and use it in GitHub Desktop.
Save evrentan/897d8e865868d2493aa33d1706823e1d to your computer and use it in GitHub Desktop.
StudentEntity
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