Test for ExerciseType (Error)
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
package com.aitrainer.api.model
|
||||
|
||||
import org.hibernate.type.BinaryType
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.GeneratedValue
|
||||
import javax.persistence.GenerationType
|
||||
import javax.persistence.Id
|
||||
import javax.validation.constraints.NotBlank
|
||||
import javax.validation.constraints.Null
|
||||
|
||||
@Entity
|
||||
data class ExerciseType (
|
||||
@get: NotBlank
|
||||
|
||||
val name: String = "",
|
||||
val description: String = "",
|
||||
val video: Long = 0,
|
||||
@get: NotBlank var name: String = "",
|
||||
@get: NotBlank var description: String = "",
|
||||
@get: Null var video: BinaryType?,
|
||||
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
val type_id: Long = 0
|
||||
val exerciseTypeId: Long = 0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user