https://kotlinlang.org logo
#spring
Title
e

ecampolo

11/21/2017, 12:13 PM
I know this is not 100% spring related, but it is quite likely you bumped into this. I'm trying to annotate a delegated property with some jpa annotation and i get an error saying that a member property with delegate is not applicable:
Copy code
@Column(name = "title", nullable = false)
var title by Verified(title, "The title cannot be blank", String::isNotBlank) // Verified is a Delegate.
c

Czar

11/21/2017, 12:29 PM
Not really an answer to the question, but since you already use JPA, I'd suggest to use standard Bean Validation (JSR 303).
e

ecampolo

11/21/2017, 12:59 PM
i will look into that, thank you 😉
2 Views