---
title: "Hibernate Validator 4正式版发布"
author: "hypgr"
date: "2009-10-28T10:22:28Z"
tags: []
slug: "hibernate-validator-4"
draft: false
lastmod: "2009-10-28T10:22:28Z"
id: 505418
url: "https://hypgr.iteye.com/blog/505418"
---

经过了几个月的不懈努力，Hibernate开发团队终于发布了[Hibernate Validator 4](https://www.hibernate.org/412.html)的最终版本。

　　[Validator](https://www.hibernate.org/412.html)是一个验证框架，不需要和Hibernate的其他组件绑定,你只需在项目中添加Hibernate-annotations.jar库即可。

　　**Hibernate Validator 4是Bean Validator(JSR-303)规范的标准实现，此版本包含了许多新特性：**

　　约束组合：自定义的约束，可避免重复代码，提高可读性

　　对组的约束：允许你自定义约束，你希望看到的特定子集

　　类型[安全](http://safe.it168.com/ "安全")的约束声明

　　强大的自定义约束

　　原生支持JPA2.0和JSF2

　　增加了类型安全的引导API

　　对元数据API的支持和XML部署描述符的支持

　　完全支持JSR-303 Bean校验器规范

　　查看Hibernate Validator 4的详情介绍：[http://in.relation.to/Bloggers/HibernateValidator4Unleashed](http://in.relation.to/Bloggers/HibernateValidator4Unleashed)

　　下载Hibernate Validator 4：[https://www.hibernate.org/6.html](https://www.hibernate.org/6.html)

　　Hibernate Validator 官方网站：[https://www.hibernate.org/412.html](https://www.hibernate.org/412.html)