API 1.0.44 TrainingPlan active

This commit is contained in:
Bossanyi Tibor
2021-06-07 15:26:48 +02:00
parent a1cec1f7b5
commit 2e7a0a9021
7 changed files with 14 additions and 3 deletions
@@ -16,6 +16,7 @@ data class TrainingPlan (
@Expose @get: NotBlank var type: String = "",
@Expose var internalName: String?,
@Expose var free: Boolean?,
@Expose @get: NotBlank var active: Boolean = false,
) {
@OneToMany(cascade = [(CascadeType.ALL)], fetch = FetchType.EAGER, mappedBy = "trainingPlan")
@Fetch(value = FetchMode.SUBSELECT)