Search in sources :

Example 1 with DatabasePlatform

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;
}
Also used : JpaEntityManager(org.eclipse.persistence.jpa.JpaEntityManager) DatabasePlatform(org.eclipse.persistence.platform.database.DatabasePlatform)

Aggregations

JpaEntityManager (org.eclipse.persistence.jpa.JpaEntityManager)1 DatabasePlatform (org.eclipse.persistence.platform.database.DatabasePlatform)1