API 1.0.40 split_tests, training_plan.treeId
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.aitrainer.api.model
|
||||
|
||||
import com.google.gson.annotations.Expose
|
||||
import kotlinx.serialization.Serializable
|
||||
import org.hibernate.annotations.Fetch
|
||||
import org.hibernate.annotations.FetchMode
|
||||
import org.springframework.lang.NonNull
|
||||
import javax.persistence.*
|
||||
import javax.validation.constraints.NotBlank
|
||||
|
||||
@Entity
|
||||
data class SplitTests (
|
||||
@Expose @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @get: NonNull var testId: Long = 0,
|
||||
@Expose @get: NotBlank var name: String = "",
|
||||
@Expose var remoteConfigKey: String?,
|
||||
@Expose var remoteConfigValue: String?,
|
||||
@Expose @get: NotBlank var testValue: String = "",
|
||||
@Expose @get: NotBlank var active: Boolean = false,
|
||||
@Expose var validTo: String?,
|
||||
)
|
||||
@@ -10,6 +10,7 @@ import javax.validation.constraints.NotBlank
|
||||
@Entity
|
||||
data class TrainingPlan (
|
||||
@Expose @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @get: NonNull var trainingPlanId: Long = 0,
|
||||
@Expose var treeId: Int?,
|
||||
@Expose @get: NotBlank var name: String = "",
|
||||
@Expose var description: String?,
|
||||
@Expose @get: NotBlank var type: String = "",
|
||||
|
||||
Reference in New Issue
Block a user