Hibernate.orgCommunity Documentation
Hibernate Core also offers integration with some external modules/projects. This includes Hibernate Validator the reference implementation of Bean Validation (JSR 303) and Hibernate Search.
By default, no configuration is necessary.
You can use both callback
and
ddl
together by setting the property to
callback, dll
<persistence ...>
<persistence-unit ...>
...
<properties>
<property name="javax.persistence.validation.mode"
value="callback, ddl"/>
</properties>
</persistence-unit>
</persistence>
If you want to validate different groups during insertion, update and deletion, use:
You can set these properties in
hibernate.cfg.xml
,
hibernate.properties
or programmatically.
Full text search engines like Apache Lucene™ are a very powerful technology to bring free text/efficient queries to applications. If suffers several mismatches when dealing with a object domain model (keeping the index up to date, mismatch between the index structure and the domain model, querying mismatch...) Hibernate Search indexes your domain model thanks to a few annotations, takes care of the database / index synchronization and brings you back regular managed objects from free text queries. Hibernate Search is using Apache Lucene under the cover.
Check the Hibernate Search reference documentation for more information.
Copyright © 2004 Red Hat, Inc.