-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
125 additions
and
203 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
package nsu.algos.entities | ||
|
||
data class TimetableOut( | ||
val day: Int, val hour: Int, val roomId: Int, val roomNum: String, | ||
val courseId: Int, val courseName: String, val teacherName: String, val groupNum: String | ||
) | ||
import jakarta.persistence.* | ||
|
||
@Entity | ||
class TimetableOut( | ||
|
||
@Id | ||
@Column(name = "TIMETABLE_ID") | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
val timetableId: Int = 0, | ||
|
||
@Column(name = "day") | ||
val day: Int, | ||
|
||
@Column(name = "hour") | ||
val hour: Int, | ||
|
||
@Column(name = "roomNum") | ||
val roomNum: String, | ||
|
||
@Column(name = "courseId") | ||
val courseId: Int, | ||
|
||
@Column(name = "courseName") | ||
val courseName: String, | ||
|
||
@Column(name = "teacherName") | ||
val teacherName: String, | ||
|
||
@Column(name = "groupNum") | ||
val groupNum: String | ||
) { | ||
constructor() : this(0, 0, 0, "", 0, "", "", "") | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package nsu.algos.service | ||
|
||
import nsu.algos.entities.Period | ||
import nsu.algos.entities.TimetableOut | ||
|
||
interface AlgoMaker { | ||
fun runAlgo():List<Period> | ||
fun runAlgo():List<TimetableOut> | ||
} |
Oops, something went wrong.