Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #197 from gsainfoteam/mig
Browse files Browse the repository at this point in the history
update : add eager option in record
  • Loading branch information
minjunj authored May 24, 2024
2 parents 078a300 + b13888f commit 9d2c641
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/record/entity/record.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ export class Record {
@Column({ default: 2 })
recommend: number; // 추천 1 비추천 0 표시 없음 2

@ManyToOne((Type) => Lecture, (lecture) => lecture.lecture_name, {})
@ManyToOne((Type) => Lecture, (lecture) => lecture.lecture_name, {
eager: true,
})
lecture: Lecture;

@ManyToOne((Type) => Prof, (prof) => prof.id, {})
@ManyToOne((Type) => Prof, (prof) => prof.id, { eager: true })
prof: Prof;

@ManyToOne((Type) => Semester, { cascade: true })
Expand Down

0 comments on commit 9d2c641

Please sign in to comment.