I wondering how spring boot handle entity manager and thread in case open session in view in enabled.
From what I understand entity manager is created at the beginning of the request and spans multiple transaction.
Does it means that each method annotated with @Transactional is injected with the entity manager created at the beginning of the request? and what if a new thread is started that calls @Transactional method does it get the same entity manager from the beginning of the request or a new one? I’ve read thta Entity Manager is scoped to JTA transaction in containers like spring… totally confused
Thank u in adance