Package io.micronaut.data.jpa.operations
Interface JpaRepositoryOperations
- All Superinterfaces:
- io.micronaut.context.ApplicationContextProvider,- io.micronaut.core.convert.ConversionServiceProvider,- HintsCapableRepository,- PrimaryRepositoryOperations,- RepositoryOperations
Operations interface specific to JPA.
- Since:
- 1.0.0
- Author:
- graemerocher
- 
Method SummaryMethods inherited from interface io.micronaut.context.ApplicationContextProvidergetApplicationContextMethods inherited from interface io.micronaut.core.convert.ConversionServiceProvidergetConversionServiceMethods inherited from interface io.micronaut.data.operations.HintsCapableRepositorygetQueryHintsMethods inherited from interface io.micronaut.data.operations.RepositoryOperationscount, delete, deleteAll, executeDelete, executeUpdate, exists, findAll, findAll, findOne, findOne, findPage, findStream, findStream, getEntity, persist, persistAll, update, updateAll
- 
Method Details- 
getCurrentEntityManager@NonNull @NonNull jakarta.persistence.EntityManager getCurrentEntityManager()- Returns:
- The current entity manager
 
- 
getEntityManagerFactory@NonNull @NonNull jakarta.persistence.EntityManagerFactory getEntityManagerFactory()- Returns:
- The entity manager factory
 
- 
loadCreate an uninitialized proxy.- Type Parameters:
- T- the entity type
- Parameters:
- type- the entity type
- id- the entity id
- Returns:
- an uninitialized proxy
 
- 
merge@NonNull <T> T merge(@NonNull T entity) Merges the entity.- Type Parameters:
- T- The entity type
- Parameters:
- entity- The entity to be merged
- Returns:
- merged entity
- See Also:
- 
- EntityManager.merge(Object)
 
 
- 
flushvoid flush()Flush the current session.
 
-