Package com.google.inject.persist.jpa
Class JpaPersistOptions
- java.lang.Object
-
- com.google.inject.persist.jpa.JpaPersistOptions
-
public final class JpaPersistOptions extends Object
Options that configure how the JPA persist service will work.- Since:
- 6.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JpaPersistOptions.Builder
A builder to create the options.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JpaPersistOptions.Builder
builder()
Returns a builder to set options.boolean
getAutoBeginWorkOnEntityManagerCreation()
Returns true if the work unit should automatically begin when the EntityManager is created, if it hasn't already begun.
-
-
-
Method Detail
-
getAutoBeginWorkOnEntityManagerCreation
public boolean getAutoBeginWorkOnEntityManagerCreation()
Returns true if the work unit should automatically begin when the EntityManager is created, if it hasn't already begun.This defaults to false because it's not safe, as careless usage can lead to leaking sessions.
-
builder
public static JpaPersistOptions.Builder builder()
Returns a builder to set options.
-
-