All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.hibernate.UnitOfWork Maven / Gradle / Ivy

There is a newer version: 5.0.0-rc.1
Show newest version
package io.dropwizard.hibernate;

import org.hibernate.CacheMode;
import org.hibernate.FlushMode;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * When annotating a Jersey resource method, wraps the method in a Hibernate session.
 * 

To be used outside Jersey, one need to create a proxy of the component with the * annotated method.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy