in one dao I have 2 @Transactional methods.
if i do not provide any explicit properties,
then what will happen, if
I run one method in the body of an
The default value of the propagation attribute of @Transactional is REQUIRED, which means:
Support a current transaction, create a new one if none exists.
So yes - both methods will run in the same transaction.
But one important advice: don't make your DAO transactional. The services should be transactional, not the DAO.