In Hibernate 3, it was possible to suppress the warning "this operation breaks ==" given by StatefulPersistenceContext by setting the level of the "org.hibernate.engine.StatefulPersistentContext.ProxyWarnLog" logger to ERROR (see , lost in commit a9b1425f3f07021dae556e710b2bdfdc3812661b (4.0.0.Alpha1)).
Hibernate 5.0.7 (Wildfly 10), SQL Server 2008 R2