add a random id
This commit is contained in:
parent
f2b05b229d
commit
9fb657a0fb
@ -9,6 +9,7 @@ import io.ebean.annotation.*
|
|||||||
import io.ebean.annotation.Index
|
import io.ebean.annotation.Index
|
||||||
import java.time.LocalDate
|
import java.time.LocalDate
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
|
import java.util.UUID
|
||||||
import javax.persistence.*
|
import javax.persistence.*
|
||||||
|
|
||||||
data class Comments(val text: String = "", val by: String = "", val at: LocalDateTime = LocalDateTime.now())
|
data class Comments(val text: String = "", val by: String = "", val at: LocalDateTime = LocalDateTime.now())
|
||||||
@ -255,7 +256,9 @@ enum class AddressType {
|
|||||||
BILLING, SHIPPING
|
BILLING, SHIPPING
|
||||||
}
|
}
|
||||||
|
|
||||||
data class ContactPerson(val name: String = "", val email: String = "", val mobile: String = "")
|
data class ContactPerson(
|
||||||
|
val id : String = UUID.randomUUID().toString(),
|
||||||
|
val name: String = "", val email: String = "", val mobile: String = "")
|
||||||
data class Address(
|
data class Address(
|
||||||
val type: AddressType = AddressType.BILLING,
|
val type: AddressType = AddressType.BILLING,
|
||||||
val address: String = "",
|
val address: String = "",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user