krotki
01/31/2018, 3:41 PM@JvmSuppressWildcards
. Then you should have Set in kotlin and proper definition for hibernate. I never tryed this tho.megax
02/01/2018, 8:15 PMmegax
02/01/2018, 9:00 PMgdias
02/02/2018, 3:11 AMgdias
02/02/2018, 3:12 AMBen
02/02/2018, 5:19 AMgdias
02/02/2018, 8:34 AMgdias
02/02/2018, 8:36 AMkrotki
02/02/2018, 8:42 AM/actuator/health
ect. If you want old behavour set management.endpoints.web.base-path=/
in your confgdias
02/02/2018, 8:56 AMgdias
02/02/2018, 8:57 AMgdias
02/02/2018, 8:59 AMsdeleuze
02/02/2018, 1:29 PMgdias
02/02/2018, 1:32 PMgdias
02/02/2018, 1:32 PMBen
02/02/2018, 4:51 PMamatos
02/05/2018, 3:53 AMDB_mwb_-_MySQL_Workbench.png▾
amatos
02/05/2018, 3:54 AMamatos
02/05/2018, 3:55 AMJacol
02/05/2018, 4:48 PMuser
02/05/2018, 4:49 PMhttps://kotlinlang.slack.com/files/U85G2A4GJ/F93UXFXBM/image.png▾
data class Customer(
@field:NotNull
@field:NotBlank
@field:Size(min = 1, message = "is required")
var name: String? = null,
@field:NotNull
@field:Size(min = 1)
var lastName: String? = null,
// @field:Range(min = 1, max = 10, message = "must be between 0 and 10")
// var freePasses: Integer? = null,
@field:Pattern(regexp = "^[a-zA-Z0-9]{5}")
var postalCode: String? = null
) {
@field:Range(min = 1, max = 10, message = "must be between 0 and 10")
var freePasses: Int? = 9
}
user
02/05/2018, 7:04 PMhttps://kotlinlang.slack.com/files/U85G2A4GJ/F93UXFXBM/image.png▾
Jacol
02/05/2018, 7:24 PMMichael
02/05/2018, 8:49 PMMichael
02/05/2018, 8:50 PMkruczaj
02/05/2018, 11:32 PMInt
and Integer
usage, but should it make any difference?Jacol
02/06/2018, 8:31 AMInt
and Integer
is the residue after testing
@Michael
null
and 9
is the residue after testing
does anyone have an idea why I do not create a Customer
object, how do I enter a wrong value in the field Int?
if it is in the constructor
data class Customer(
@field:NotNull
@field:NotBlank
@field:Size(min = 1, message = "is required")
var name: String? = null,
@field:NotNull
@field:Size(min = 1)
var lastName: String? = null,
// @field:Range(min = 1, max = 10, message = "must be between 0 and 10")
// var freePasses: Int? = null,
@field:Pattern(regexp = "^[a-zA-Z0-9]{5}")
var postalCode: String? = null
) {
@field:Range(min = 1, max = 10, message = "must be between 0 and 10")
var freePasses: Int? = null
}
dstarcev
02/06/2018, 11:09 AMdstarcev
02/06/2018, 11:11 AMplugins {
id "org.jetbrains.kotlin.plugin.jpa" version "1.2.21"
}
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-noarg:${kotlinVersion}"
}
}
apply plugin: 'kotlin-jpa'