When dealing with transactions and NoSQL data stores there are several aspects which can be relevant: * Does the data store support transactions semantics * How does the data store support JTA transaction type ** Requires JTA ** Takes part of the JTA transaction *** w/ transaction semantics *** w/o transaction semantics (just to batch its work) * How does the data store support RESOURCE_LOCAL transaction type
See also the [discussion in PR#500| https://github.com/ hferentschik hibernate /hibernate-ogm/ commit pull / ce85aa1325e7e5c0f0bdfb0431cf8c575f985208 500 #commitcomment-10055286 ] (for OGM-718).
[~gunnar.morling] proposes for example something like that:
{code:title=TransactionCapability.java|borderStyle=solid} public interface TransactionCapability { boolean isTransactional(); JtaParticipation getJtaParticipationType(); // JtaParticipation being an enum of some form boolean localTxType(); Class<?> getLocalTransactionImplementationType(); } {code}
|