unit test customer table

This commit is contained in:
Bossanyi Tibor
2020-05-05 17:49:22 +02:00
parent 3dfef8add8
commit fa4efd699d
6 changed files with 42 additions and 13 deletions
@@ -1,7 +1,5 @@
package com.aitrainer.api.model
import com.aitrainer.api.enums.SexEnum
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
@@ -11,13 +9,13 @@ import javax.validation.constraints.NotBlank
@Entity
data class Customer (
@get: NotBlank
val name: String = "",
val firstname: String,
val email: String,
val age: Int,
val sex: String,
val name: String = "",
val firstname: String = "",
val email: String = "",
val age: Int = 0,
val sex: String = "m",
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
val customer_id: Long? = null
val customer_id: Long = 0
)