If I use Spring Data JPA without @Transactional, will the entity not be in a Managed state in the persistence context?
I used Spring Data JPA’s JpaRepository(3.2.2), and after checking the implementation, I found out that it uses jakarta.persistence.EntityManager to perform find operations. As far as I know, when entitymanager.find is called, the entity is fetched into a managed state in the persistence context. and also i find out this answer.
However, I’ve heard that entities only become persistent under a transaction.