Closed gavinking closed 1 year ago
@lukasj Two questions:
EntityManagerFactory.getTransactionType()
?PersistenceTransactionManagementType
?Or just PersistenceTransactionManagement
?
PersistenceTransactionType
is ok, but it seems txType attribute of @Transactional()
is not a good naming, will confuse developers. The Spring @Transactional
propagation
is more reasonable.
@hantsy I agree, I don't like Transactional.TxType
at all, neither its name, nor the fact that it's an inner enum of an annotation. I would have liked to be able to reuse it in #410. But for those reasons, and because Lukas doesn't want a direct dependency to the JTA module, we're not going to use it, and we're just going to live with REQUIRED
semantics.
After #465 we have the API
PersistenceTransactionType
and the SPIPersistenceUnitTransactionType
.We can deprecate
PersistenceUnitTransactionType
for removal.