In 5.1, a native Hibernate Session allows doing updates when a transaction is not explicitly started. In 5.2, since Session extends EntityManager, this is no longer allowed by default. To enable the 5.1 behavior, the following setting is required: hibernate.allow_update_outside_transaction=true. |