use of org.eclipse.persistence.platform.database.DatabasePlatform in project cuba by cuba-platform.
the class SoftDeleteTest method setPrintInnerJoinInWhereClause.
protected boolean setPrintInnerJoinInWhereClause(EntityManager entityManager, boolean value) {
JpaEntityManager jpaEntityManager = (JpaEntityManager) entityManager.getDelegate();
DatabasePlatform platform = jpaEntityManager.getActiveSession().getPlatform();
boolean prevValue = platform.shouldPrintInnerJoinInWhereClause();
platform.setPrintInnerJoinInWhereClause(value);
return prevValue;
}
Aggregations