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

play.db.jpa.NoTransaction Maven / Gradle / Ivy

There is a newer version: 2.6.2
Show newest version
package play.db.jpa;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/** Annotation to be used on methods telling JPA that it should not create a Transaction at all */
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Target(value = {ElementType.METHOD, ElementType.TYPE})
public @interface NoTransaction {
  /**
   * Db name we do not want transaction.
   *
   * @return The DB name
   */
  String value() default "default";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy