public class JPARepository<Aggregate,Identity extends Serializable>
JPA implementation of DDD repository for aggregates.
@JvmOverloads
public JPARepository(@NotNull
play.db.jpa.JPAApi jpaApi,
@NotNull
DatabaseExecutionContext executionContext,
@NotNull
java.lang.Class<? extends Aggregate> clazz,
@NotNull
java.lang.String persistenceUnitName)
JPA implementation of DDD repository for aggregates.
@JvmOverloads
public JPARepository(@NotNull
play.db.jpa.JPAApi jpaApi,
@NotNull
DatabaseExecutionContext executionContext,
@NotNull
java.lang.Class<? extends Aggregate> clazz)
JPA implementation of DDD repository for aggregates.
protected <E> E transaction(@NotNull
kotlin.jvm.functions.Function1<? super javax.persistence.EntityManager,? extends E> function)
protected <E> E readOnly(@NotNull
kotlin.jvm.functions.Function1<? super javax.persistence.EntityManager,? extends E> function)
@NotNull
protected <E> java.util.concurrent.CompletionStage<E> execute(@NotNull
kotlin.jvm.functions.Function1<? super javax.persistence.EntityManager,? extends E> function)
@NotNull
protected <E> java.util.concurrent.CompletionStage<E> executeRO(@NotNull
kotlin.jvm.functions.Function1<? super javax.persistence.EntityManager,? extends E> function)
@NotNull
protected <E> java.util.concurrent.CompletionStage<E> executeSession(@NotNull
kotlin.jvm.functions.Function1<? super org.hibernate.Session,? extends E> function)
@NotNull
protected <E> java.util.concurrent.CompletionStage<E> executeSessionRO(@NotNull
kotlin.jvm.functions.Function1<? super org.hibernate.Session,? extends E> function)
@NotNull
public java.util.concurrent.CompletionStage<java.util.Optional> get(@NotNull
Identity id)
@NotNull public java.util.concurrent.CompletionStage<java.util.List> getAll()
@NotNull
public java.util.concurrent.CompletionStage<java.util.List> findByIds(@NotNull
java.util.List<? extends Identity> ids)
@NotNull
public java.util.concurrent.CompletionStage<akka.Done> remove(@NotNull
Aggregate aggregate)
@NotNull
public java.util.concurrent.CompletionStage<akka.Done> removeAll(@NotNull
java.util.Collection<? extends Aggregate> aggregates)
@NotNull
public java.util.concurrent.CompletionStage<akka.Done> create(@NotNull
Aggregate aggregate)
@NotNull
public java.util.concurrent.CompletionStage<akka.Done> createAll(@NotNull
java.util.Collection<? extends Aggregate> aggregates)
@NotNull
public java.util.concurrent.CompletionStage<akka.Done> save(@NotNull
Aggregate aggregate)
@NotNull
public java.util.concurrent.CompletionStage<akka.Done> saveAll(@NotNull
java.util.Collection<? extends Aggregate> aggregates)
@NotNull protected play.db.jpa.JPAApi getJpaApi()
@NotNull protected DatabaseExecutionContext getExecutionContext()
@NotNull protected java.lang.Class<? extends Aggregate> getClazz()
@NotNull protected java.lang.String getPersistenceUnitName()