Class BaseAIContextRepository
java.lang.Object
ai.aletyx.kogito.addons.adhocsubprocess.storage.jpa.repository.BaseAIContextRepository
- All Implemented Interfaces:
AIContextRepository
Framework-agnostic
AIContextRepository backed by JPA. Runtime modules
(Quarkus, Spring Boot) subclass and add transactional / CDI-or-Spring semantics.
Persists the aggregate wholesale on each save: the AIContextEntity
owns its execution-record children via cascade=ALL, orphanRemoval=true,
so writing the parent rewrites the history list.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract jakarta.persistence.EntityManagerfindAll()voidvoidsave(AIProcessing.AIContext context)
-
Constructor Details
-
BaseAIContextRepository
public BaseAIContextRepository()
-
-
Method Details
-
entityManager
protected abstract jakarta.persistence.EntityManager entityManager() -
find
- Specified by:
findin interfaceAIContextRepository
-
save
- Specified by:
savein interfaceAIContextRepository
-
remove
- Specified by:
removein interfaceAIContextRepository
-
findAll
- Specified by:
findAllin interfaceAIContextRepository
-