Daniel Keir Haywood created CAUSEWAY-3704:
---------------------------------------------
Summary: Support manual management of transactions at the edge
through a config prop
Key: CAUSEWAY-3704
URL: https://issues.apache.org/jira/browse/CAUSEWAY-3704
Project: Causeway
Issue Type: New Feature
Components: Core
Affects Versions: 2.0.0
Reporter: Daniel Keir Haywood
Fix For: 2.1.0
Some folk might want to use the framework without the built-in persistence
mechanisms, and roll their own, eg using JOOQ or (even) event sourcing. Or
they might use JPA but prefer to minimize the length of transactions and set
jpa open-in-view to false .
useful reference on this:
[https://www.baeldung.com/spring-open-session-in-view.]
To support this, suggest we introduce a flag which if set means that the
framework no longer auto-manages the transaction at the edge. Perhaps a
metamodel validation should then also enforce that there are no
`@DomainObject(nature=ENTITY)` to be found in the domain model.
Perhaps the property is called causeway.core.view-models-only?
Or alternatively causeway.core.explicit-transaction-management?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)