
io.dropwizard.hibernate.UnitOfWork Maven / Gradle / Ivy
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