deploymentId = "Dixie Flatline"; name = "Complete Mission"; addTask(workItemId, procInstId, busAdmin, potOwner, name, deploymentId); deploymentId = "Linda Lee"; name = "Resurrect"; addTask(workItemId, procInstId, busAdmin, potOwner, name, deploymentId); deploymentId = "Linda Lee"; name = "Resurrect"; addTask(workItemId, procInstId, busAdmin, potOwner, name, deploymentId); ++total; selectDur = doSelectQuery(em, userId, groupIds, total); joinDur = doJoinQuery(em, userId, groupIds, total); } else { joinDur = doJoinQuery(em, userId, groupIds, total); selectDur = doSelectQuery(em, userId, groupIds, total);
private void copyCollectionPersisterKeys(Attribute embeddedAttr, PluralAttribute listAttr, EntityManager em) { String [] keys = createOriginalAndExpectedKeys(embeddedAttr, listAttr); try { SessionImpl session = (SessionImpl) em.getDelegate(); SessionFactoryImplementor sessionFactory = session.getSessionFactory(); CollectionPersister persister = sessionFactory.getCollectionPersister(keys[0]); sessionFactory.getCollectionPersisters().put(keys[1], persister); } catch (Exception e) { throw new RuntimeException(e); } }
realQuery.setParameter(groupIdsParam, groupIds); return timeQueryExecution(em, null, realQuery, total);
Join<TaskImpl, TaskDataImpl> join = taskRoot.join(TaskImpl_.taskData); Selection select = getTaskSummarySelect(builder, taskRoot); joinQuery.select(select); Join<TaskImpl, PeopleAssignmentsImpl> peopleAssign = taskRoot.join(TaskImpl_.peopleAssignments); return timeQueryExecution(em, joinQuery, null, total);
@Before public void setup() { pds = setupPoolingDataSource(); emf = Persistence.createEntityManagerFactory( "org.jbpm.services.task" ); this.taskService = (InternalTaskService) HumanTaskServiceFactory.newTaskServiceConfigurator() .entityManagerFactory(emf) .getTaskService(); }