Skip to content
A hibernate plugin for vraptor
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

VRaptor Hibernate Plugin

Build status

VRaptor Hibernate Plugin provides support to use with Hibernate 4.

How to install?

You only need to copy the jar to your classpath. VRaptor will register plugin when your application starts without any configurations. Downloads are available in downloads area or in Maven Repository:

  <version>4.0.0.Final</version> <!-- or the latest version -->

Transactional Control

The default behavior is that each request will have a transaction available.

If you want, you can enable a decorator to change this behavior.

When enabled, it will open transactions only for methods with @Transactional annotation.

To do that you just need to add the follow content into your project's beans.xml:


Extra Configurations

If you want to add some custom configuration in org.hibernate.cfg.Configuration, extend the class and override the protected void extraConfigurations(Configuration configuration) method. You need to annotate your extended class with @Specializes annotation.

public class MyConfigurationCreator extends ConfigurationCreator {
	protected void extraConfigurations(Configuration configuration) {
		configuration.setInterceptor(new MyHibernateInterceptor());
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.