public void setup() {
    m_addressDesc =
        getSession()
            .getClassDescriptor(org.eclipse.persistence.testing.models.insurance.Address.class);
    m_addressDisableCacheHits = m_addressDesc.shouldDisableCacheHits();
    m_addressAlwaysrefreshCache = m_addressDesc.shouldAlwaysRefreshCache();
    m_addressDesc.disableCacheHits();
    m_addressDesc.alwaysRefreshCache();

    m_policyHolderDesc =
        getSession()
            .getClassDescriptor(
                org.eclipse.persistence.testing.models.insurance.PolicyHolder.class);
    m_policyHolderDisableCacheHits = m_policyHolderDesc.shouldDisableCacheHits();
    m_policyHolderAlwaysrefreshCache = m_policyHolderDesc.shouldAlwaysRefreshCache();
    m_policyHolderDesc.disableCacheHits();
    m_policyHolderDesc.alwaysRefreshCache();
  }
  public void setup() {
    project = new EmployeeProject();
    ClassDescriptor descriptor =
        (ClassDescriptor)
            project
                .getDescriptors()
                .get(org.eclipse.persistence.testing.models.employee.domain.Employee.class);

    descriptor.disableCacheHits();

    //	ReadObjectQuery query = new ReadObjectQuery(Employee.class);
    //	descriptor.getQueryManager().addQuery("UndefinedQuery", query);

    ReadObjectQuery query = new ReadObjectQuery(Employee.class);
    query.maintainCache();
    descriptor.getQueryManager().addQuery("TrueQuery", query);

    query = new ReadObjectQuery(Employee.class);
    query.dontMaintainCache();
    descriptor.getQueryManager().addQuery("FalseQuery", query);
  }