JPA Annotation Attribute
in jakarta.persistence.PersistenceContext

SynchronizationType synchronization default SynchronizationType.SYNCHRONIZED


(Optional) Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the joinTransaction() method.
Since:
JPA 2.1