Search in sources :

Example 1 with LargeProject

use of org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject in project eclipselink by eclipse-ee4j.

the class EmployeePopulator method basicLargeProjectExample3.

public LargeProject basicLargeProjectExample3() {
    LargeProject largeProject = createLargeProject();
    try {
        largeProject.setName("TOPEmployee Management");
        largeProject.setDescription("A management application to report on the corporations database through TopLink.");
        largeProject.setBudget(4000.98);
        startCalendar.set(1997, 10, 12, 1, 0, 0);
    // largeProject.setMilestoneVersion(new Timestamp(startCalendar.getTime().getTime()));
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return largeProject;
}
Also used : LargeProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)

Example 2 with LargeProject

use of org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject in project eclipselink by eclipse-ee4j.

the class EmployeePopulator method basicLargeProjectExample5.

public LargeProject basicLargeProjectExample5() {
    LargeProject largeProject = createLargeProject();
    try {
        largeProject.setName("Problem Reporting System");
        largeProject.setDescription("A PRS application to report on the corporations database through TopLink.");
        largeProject.setBudget(101.98);
        startCalendar.set(1997, 9, 6, 1, 40, 44);
    // largeProject.setMilestoneVersion(new Timestamp(startCalendar.getTime().getTime()));
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return largeProject;
}
Also used : LargeProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)

Example 3 with LargeProject

use of org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject in project eclipselink by eclipse-ee4j.

the class EmployeePopulator method largeProjectExample2.

public LargeProject largeProjectExample2() {
    if (containsObject(LargeProject.class, "0002")) {
        return (LargeProject) getObject(LargeProject.class, "0002");
    }
    LargeProject largeProject = basicLargeProjectExample2();
    registerObject(largeProject, "0002");
    return largeProject;
}
Also used : LargeProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)

Example 4 with LargeProject

use of org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject in project eclipselink by eclipse-ee4j.

the class EmployeePopulator method basicLargeProjectExample2.

public LargeProject basicLargeProjectExample2() {
    LargeProject largeProject = createLargeProject();
    try {
        largeProject.setName("Swirly Dirly");
        largeProject.setDescription("A swirly application to report on the corporations database through TopLink.");
        largeProject.setBudget(100.98);
        startCalendar.set(1999, 11, 25, 11, 40, 44);
    // largeProject.setMilestoneVersion(new Timestamp(startCalendar.getTime().getTime()));
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return largeProject;
}
Also used : LargeProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)

Example 5 with LargeProject

use of org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject in project eclipselink by eclipse-ee4j.

the class EmployeePopulator method largeProjectExample5.

public LargeProject largeProjectExample5() {
    if (containsObject(LargeProject.class, "0005")) {
        return (LargeProject) getObject(LargeProject.class, "0005");
    }
    LargeProject largeProject = basicLargeProjectExample5();
    registerObject(largeProject, "0005");
    try {
        largeProject.setTeamLeader(employeeExample5());
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return largeProject;
}
Also used : LargeProject(org.eclipse.persistence.testing.models.jpa.xml.composite.advanced.member_3.LargeProject)

Aggregations

LargeProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)19 LargeProject (org.eclipse.persistence.testing.models.jpa.xml.composite.advanced.member_3.LargeProject)11 SuperLargeProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SuperLargeProject)9 EntityManager (jakarta.persistence.EntityManager)8 JpaEntityManager (org.eclipse.persistence.jpa.JpaEntityManager)8 SmallProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)7 Employee (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.Employee)6 Project (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.Project)5 HashMap (java.util.HashMap)4 ArrayList (java.util.ArrayList)3 Address (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_1.Address)3 PersistenceException (jakarta.persistence.PersistenceException)2 List (java.util.List)2 Vector (java.util.Vector)2 ClassDescriptor (org.eclipse.persistence.descriptors.ClassDescriptor)2 IndirectList (org.eclipse.persistence.indirection.IndirectList)2 ReadAllQuery (org.eclipse.persistence.queries.ReadAllQuery)2 ReportQuery (org.eclipse.persistence.queries.ReportQuery)2 EmploymentPeriod (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)2 FormerEmployment (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.FormerEmployment)2