sdeleuze
03/28/2019, 9:01 AMinline
for performance reasons (currently only those leveraging reified type parameters are), any thoughts on that?norricorp
04/02/2019, 6:47 AMvbsteven
04/02/2019, 10:55 AMsdeleuze
04/12/2019, 8:16 AMbjonnh
04/19/2019, 10:48 PMbjonnh
04/19/2019, 11:59 PMthiagoretondar
04/21/2019, 10:34 PMthis.repository.findByIdOrNull
and when programming in Java I throw a Custom Exception (ResourceNotFoundException
for example). What is a best practice to do this in Kotlin?bjonnh
04/25/2019, 4:12 PMbjonnh
04/25/2019, 5:40 PMNezteb
04/25/2019, 5:50 PMbjonnh
04/26/2019, 6:17 PMbjonnh
04/26/2019, 8:02 PMthiagoretondar
04/30/2019, 12:49 PMnvarchar
? The project is using spring-data-jpa
.
I’ve found some options: @Nationalized
, @Column(columnDefinition = ... )
, type StringNVarcharType
Which one?sp
05/03/2019, 11:04 AMsnowe
05/03/2019, 7:13 PMthiagoretondar
05/07/2019, 6:47 PMMap<String, String>?
. This method is in a Custom Implementation for Spring Data Repositories (exactly as described here: https://docs.spring.io/spring-data/jpa/docs/2.1.6.RELEASE/reference/html/#repositories.custom-implementations).
My problem: when I return urlRequestResult?.value as Map<String, String>?
(using restTemplate to do the request here) it returns an empty LinkedHashMap
, but if I evaluate it in debug mode it returns null
(as I was expecting when urlRequestResult
is null)
Is it a bug or am I doing something wrong here?snowe
05/13/2019, 8:08 PMahulyk
05/16/2019, 12:33 PMsdeleuze
05/16/2019, 1:55 PMadalbert
05/20/2019, 12:04 PMrodolpho.couto
05/24/2019, 3:19 PMspring-fu
already support exception handlers with WebMvc
?Slackbot
05/25/2019, 7:54 PMxenoterracide
05/29/2019, 4:36 PM@Configuration
@ConfigurationProperties(prefix = "schedule")
open class ScheduleProperies {
var periodicDump: DumpSchedule? = null
open class DumpSchedule {
/**
* in seconds
*/
var interval: Int? = null
/**
* in seconds
*/
var offset: Long? = null
}
}
is it possible to make a Bean out of DumpSchedule
?jmfayard
06/05/2019, 8:53 AMjmfayard
06/05/2019, 8:56 AMif (object == null)
for java classes like org.springframework.data.mongodb.core.query.Criteria
who redefine public boolean equals(Object obj): Boolean
and forgot the @Nullable
annotation, while the package is marked at @NonNullApi
.
Work around: if (object === null)
is workingiex
06/06/2019, 8:40 AMprojectmoon
06/06/2019, 10:29 AMMaksim Vlasov
06/08/2019, 6:17 PMMarcel Overdijk
06/12/2019, 4:29 PMalieksie
06/18/2019, 7:30 AMGradle
alieksie
06/18/2019, 7:30 AMGradle
val copyDependencies by tasks.creating(Copy::class) {
from(configurations.testRuntimeClasspath.get()) {
include("*.dll")
include("*.dylib")
include("*.so")
}
into("build/libs")
}
val test by tasks.getting(Test::class) {
useJUnitPlatform { }
dependsOn(copyDependencies)
systemProperty("sqlite4java.library.path", "build/libs")
}
that works