Search in sources :

Example 1 with SmallProject

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

the class EmployeePopulator method basicSmallProjectExample9.

public SmallProject basicSmallProjectExample9() {
    SmallProject smallProject = createSmallProject();
    try {
        smallProject.setName("Accounting Query Tool");
        smallProject.setDescription("A tool to help accounting query things.");
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return smallProject;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)

Example 2 with SmallProject

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

the class EmployeePopulator method basicSmallProjectExample5.

public SmallProject basicSmallProjectExample5() {
    SmallProject smallProject = createSmallProject();
    try {
        smallProject.setName("Swirly Dirl");
        smallProject.setDescription("A swirlly application to report on the corporations database through TopLink.");
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return smallProject;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)

Example 3 with SmallProject

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

the class EmployeePopulator method basicSmallProjectExample3.

public SmallProject basicSmallProjectExample3() {
    SmallProject smallProject = createSmallProject();
    try {
        smallProject.setName("TOPEmployee Manager");
        smallProject.setDescription("A management application to report on the corporations database through TopLink.");
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return smallProject;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)

Example 4 with SmallProject

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

the class EmployeePopulator method smallProjectExample5.

public SmallProject smallProjectExample5() {
    if (containsObject(SmallProject.class, "0005")) {
        return (SmallProject) getObject(SmallProject.class, "0005");
    }
    SmallProject smallProject = basicSmallProjectExample5();
    registerObject(smallProject, "0005");
    return smallProject;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)

Example 5 with SmallProject

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

the class EmployeePopulator method basicSmallProjectExample7.

public SmallProject basicSmallProjectExample7() {
    SmallProject smallProject = createSmallProject();
    try {
        smallProject.setName("Marketing Query Tool");
        smallProject.setDescription("A tool to help marketing query things.");
    } catch (Exception exception) {
        throw new RuntimeException(exception.toString());
    }
    return smallProject;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)

Aggregations

SmallProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SmallProject)27 SmallProject (org.eclipse.persistence.testing.models.jpa.xml.composite.advanced.member_3.SmallProject)21 EntityManager (jakarta.persistence.EntityManager)6 JpaEntityManager (org.eclipse.persistence.jpa.JpaEntityManager)6 Employee (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_2.Employee)5 LargeProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.LargeProject)5 SuperLargeProject (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.SuperLargeProject)5 HashMap (java.util.HashMap)3 Project (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.Project)3 ArrayList (java.util.ArrayList)2 Address (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_1.Address)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 PhoneNumber (org.eclipse.persistence.testing.models.jpa.composite.advanced.member_3.PhoneNumber)2 EntityExistsException (jakarta.persistence.EntityExistsException)1 EntityManagerFactory (jakarta.persistence.EntityManagerFactory)1 EntityNotFoundException (jakarta.persistence.EntityNotFoundException)1 LockModeType (jakarta.persistence.LockModeType)1 OptimisticLockException (jakarta.persistence.OptimisticLockException)1 PersistenceException (jakarta.persistence.PersistenceException)1