API 1.0.28+2 ExercisePlan type
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.aitrainer.api.model
|
||||
|
||||
import org.hibernate.annotations.Fetch
|
||||
import org.hibernate.annotations.FetchMode
|
||||
import org.springframework.lang.NonNull
|
||||
import javax.persistence.*
|
||||
|
||||
@@ -12,18 +10,12 @@ data class ExercisePlan(
|
||||
@get: NonNull var description: String? = null,
|
||||
@get: NonNull var private: Boolean = false,
|
||||
@get: NonNull var dateAdd: String? = null,
|
||||
@get: NonNull var dateUpd: String? = null
|
||||
@get: NonNull var dateUpd: String? = null,
|
||||
@get: NonNull var type: String? = null,
|
||||
) {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
var exercisePlanId: Int = 0
|
||||
|
||||
|
||||
|
||||
/* @OneToMany(fetch = FetchType.LAZY, mappedBy = "exercisePlan")
|
||||
@Fetch(value = FetchMode.SUBSELECT)
|
||||
val planDetailList: List<ExercisePlanDetail> = mutableListOf<ExercisePlanDetail>()
|
||||
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user