What is Hibernate Validator?
mainHibernate Validator is the reference implementation of the Jakarta Validation specification. It provides a metadata model and API for entity and method validation, allowing developers to define validation logic once and apply it across different application layers (presentation, business, and persistence) to avoid duplication.
Key characteristics:
- Metadata-driven: Uses annotations as the default metadata source, with support for XML to override or extend metadata.
- Tier-agnostic: The API is not tied to a specific application tier (like web or persistence) or programming model, making it suitable for server-side applications and rich client applications (e.g., Swing).