Search in sources :

Example 1 with EmploymentPeriod

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

the class EmployeePopulator method employmentPeriodExample6.

public EmploymentPeriod employmentPeriodExample6() {
    EmploymentPeriod employmentPeriod = new EmploymentPeriod();
    startCalendar.set(1901, 11, 31, 0, 0, 0);
    endCalendar.set(1995, 0, 12, 0, 0, 0);
    employmentPeriod.setEndDate(new java.sql.Date(endCalendar.getTime().getTime()));
    employmentPeriod.setStartDate(new java.sql.Date(startCalendar.getTime().getTime()));
    return employmentPeriod;
}
Also used : EmploymentPeriod(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)

Example 2 with EmploymentPeriod

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

the class EmployeePopulator method employmentPeriodExample2.

public EmploymentPeriod employmentPeriodExample2() {
    EmploymentPeriod employmentPeriod = new EmploymentPeriod();
    startCalendar.set(1991, 10, 11, 0, 0, 0);
    employmentPeriod.setStartDate(new java.sql.Date(startCalendar.getTime().getTime()));
    return employmentPeriod;
}
Also used : EmploymentPeriod(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)

Example 3 with EmploymentPeriod

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

the class EmployeePopulator method employmentPeriodExample3.

public EmploymentPeriod employmentPeriodExample3() {
    EmploymentPeriod employmentPeriod = new EmploymentPeriod();
    startCalendar.set(1901, 11, 31, 0, 0, 0);
    endCalendar.set(1995, 0, 12, 0, 0, 0);
    employmentPeriod.setEndDate(new java.sql.Date(endCalendar.getTime().getTime()));
    employmentPeriod.setStartDate(new java.sql.Date(startCalendar.getTime().getTime()));
    return employmentPeriod;
}
Also used : EmploymentPeriod(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)

Example 4 with EmploymentPeriod

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

the class EmployeePopulator method employmentPeriodExample5.

public EmploymentPeriod employmentPeriodExample5() {
    EmploymentPeriod employmentPeriod = new EmploymentPeriod();
    startCalendar.set(1901, 11, 31, 0, 0, 0);
    endCalendar.set(1895, 0, 1, 0, 0, 0);
    employmentPeriod.setEndDate(new java.sql.Date(endCalendar.getTime().getTime()));
    employmentPeriod.setStartDate(new java.sql.Date(startCalendar.getTime().getTime()));
    return employmentPeriod;
}
Also used : EmploymentPeriod(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)

Example 5 with EmploymentPeriod

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

the class EmployeePopulator method employmentPeriodExample10.

public EmploymentPeriod employmentPeriodExample10() {
    EmploymentPeriod employmentPeriod = new EmploymentPeriod();
    startCalendar.set(1991, 10, 11, 0, 0, 0);
    employmentPeriod.setStartDate(new java.sql.Date(endCalendar.getTime().getTime()));
    return employmentPeriod;
}
Also used : EmploymentPeriod(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)

Aggregations

EmploymentPeriod (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.EmploymentPeriod)22 EmploymentPeriod (org.eclipse.persistence.testing.models.jpa.xml.composite.advanced.member_2.EmploymentPeriod)17 EntityManager (jakarta.persistence.EntityManager)8 Employee (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.Employee)8 JpaEntityManager (org.eclipse.persistence.jpa.JpaEntityManager)7 Date (java.sql.Date)6 Employee (org.eclipse.persistence.testing.models.jpa.xml.composite.advanced.member_2.Employee)5 FormerEmployment (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.FormerEmployment)3 DatabaseSessionImpl (org.eclipse.persistence.internal.sessions.DatabaseSessionImpl)2 Address (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_1.Address)2 LargeProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)2 PhoneNumber (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.PhoneNumber)2 SmallProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)2 SuperLargeProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SuperLargeProject)2 Address (org.eclipse.persistence.testing.models.jpa.performance2.Address)2 Employee (org.eclipse.persistence.testing.models.jpa.performance2.Employee)2 EmploymentPeriod (org.eclipse.persistence.testing.models.jpa.performance2.EmploymentPeriod)2 JobTitle (org.eclipse.persistence.testing.models.jpa.performance2.JobTitle)2 PhoneNumber (org.eclipse.persistence.testing.models.jpa.performance2.PhoneNumber)2 EntityExistsException (jakarta.persistence.EntityExistsException)1