This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Annotation in Validation  RSS feed

Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I didn't find in the book I read from how can I perform annotated validation at the domain object level?
Using validations .xml file I perform validation, but how to do this by annotations?
I have Registration-validatio.xml file, inside what is followed declaration :

and a User-validation.xml, with followed content:

this is validation at domain level object, and it works ok. But I would like to perform validation through annotations.
I know how to perform annotated validation on the class, where fields are exposed directly, but how at domain level object?!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!