Search in sources :

Example 16 with EmployeeSystem

use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.

the class SimultaneousTestsModel method addRequiredSystems.

@Override
public void addRequiredSystems() {
    addRequiredSystem(new EmployeeSystem());
    addRequiredSystem(new EventHookSystem());
    addRequiredSystem(new UOWSystem());
}
Also used : EventHookSystem(org.eclipse.persistence.testing.models.events.EventHookSystem) UOWSystem(org.eclipse.persistence.testing.tests.unitofwork.UOWSystem) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 17 with EmployeeSystem

use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.

the class DbChangeNotificationInternalTestModel method addRequiredSystems.

@Override
public void addRequiredSystems() {
    setupUser();
    addRequiredSystem(new TestSystemAdapted(new EmployeeSystem(), new DbChangeNotificationAdapter(queueName, queueTableName, useMultipleConsumers)));
}
Also used : TestSystemAdapted(org.eclipse.persistence.testing.tests.returning.TestSystemAdapted) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 18 with EmployeeSystem

use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.

the class UnitOfWorkTransactionIsolationTestModel method addRequiredSystems.

@Override
public void addRequiredSystems() {
    addRequiredSystem(new EmployeeSystem());
    addRequiredSystem(new InsuranceSystem());
}
Also used : EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 19 with EmployeeSystem

use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.

the class CommitOrderTest method test.

@Override
public void test() {
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new EmployeeSystem().addDescriptors(getDatabaseSession());
    orderAResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InsuranceSystem().addDescriptors(getDatabaseSession());
    orderBResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new OwnershipSystem().addDescriptors(getDatabaseSession());
    orderCResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InheritanceSystem().addDescriptors(getDatabaseSession());
    orderDResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
}
Also used : InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) OwnershipSystem(org.eclipse.persistence.testing.models.ownership.OwnershipSystem) DatabaseSession(org.eclipse.persistence.sessions.DatabaseSession) InheritanceSystem(org.eclipse.persistence.testing.models.inheritance.InheritanceSystem) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 20 with EmployeeSystem

use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.

the class CommitOrderTest method test.

@Override
public void test() {
    getSession().setLogLevel(SessionLog.FINE);
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new EmployeeSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InsuranceSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new org.eclipse.persistence.testing.models.ownership.OwnershipSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InheritanceSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
}
Also used : InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) InheritanceSystem(org.eclipse.persistence.testing.models.inheritance.InheritanceSystem) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Aggregations

EmployeeSystem (org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)28 InheritanceSystem (org.eclipse.persistence.testing.models.inheritance.InheritanceSystem)8 InsuranceSystem (org.eclipse.persistence.testing.models.insurance.InsuranceSystem)7 DatabaseSession (org.eclipse.persistence.sessions.DatabaseSession)5 DatabaseLogin (org.eclipse.persistence.sessions.DatabaseLogin)2 EventHookSystem (org.eclipse.persistence.testing.models.events.EventHookSystem)2 OwnershipSystem (org.eclipse.persistence.testing.models.ownership.OwnershipSystem)2 IndirectListSystem (org.eclipse.persistence.testing.models.transparentindirection.IndirectListSystem)2 org.eclipse.persistence.testing.tests.unitofwork (org.eclipse.persistence.testing.tests.unitofwork)2 ClassDescriptor (org.eclipse.persistence.descriptors.ClassDescriptor)1 EclipseLinkException (org.eclipse.persistence.exceptions.EclipseLinkException)1 DatabasePlatform (org.eclipse.persistence.internal.databaseaccess.DatabasePlatform)1 DatabaseSessionImpl (org.eclipse.persistence.internal.sessions.DatabaseSessionImpl)1 ForeignReferenceMapping (org.eclipse.persistence.mappings.ForeignReferenceMapping)1 ManyToManyMapping (org.eclipse.persistence.mappings.ManyToManyMapping)1 OneToOneMapping (org.eclipse.persistence.mappings.OneToOneMapping)1 TimesTenPlatform (org.eclipse.persistence.platform.database.TimesTenPlatform)1 Project (org.eclipse.persistence.sessions.Project)1 SessionBroker (org.eclipse.persistence.sessions.broker.SessionBroker)1 XMLSessionConfigLoader (org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader)1