Answers for "No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call"

0

No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call

// -- Spring Boot
// -- add this annotation @Transactional

public interface UserRepository extends JpaRepository<User, Long> {
    @Transactional
    Optional<User> deleteByEmail(String email);
}

// -- IG || TW => CoderNadir
Posted by: Guest on March-29-2022

Code answers related to "No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call"

Browse Popular Code Answers by Language