/** Instantiates a new healthcare site. */ public HealthcareSite() { lazyListHelper = new LazyListHelper(); lazyListHelper.add( InvestigatorGroup.class, new BiDirectionalInstantiateFactory<InvestigatorGroup>( InvestigatorGroup.class, this, "HealthcareSite", new Class[] {HealthcareSite.class})); }
/** Instantiates a new research staff. */ public ResearchStaff() { lazyListHelper = new LazyListHelper(); // register with lazy list helper study site. lazyListHelper.add(SiteResearchStaff.class, new SiteResearchStaffFactory(this)); }
/** * Gets the site research staffs. * * @return the site research staffs */ @Transient public List<SiteResearchStaff> getSiteResearchStaffs() { return lazyListHelper.getLazyList(SiteResearchStaff.class); }
/** * Sets the site research staffs internal. * * @param researchstaffs the new site research staffs internal */ public void setSiteResearchStaffsInternal(final List<SiteResearchStaff> researchstaffs) { lazyListHelper.setInternalList(SiteResearchStaff.class, researchstaffs); }
/** * This method will return a status text for display purpose's. * * @return the site research staffs internal */ @OneToMany(mappedBy = "researchStaff", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = {CascadeType.ALL}) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<SiteResearchStaff> getSiteResearchStaffsInternal() { return lazyListHelper.getInternalList(SiteResearchStaff.class); }
/** * Gets the investigator groups. * * @return the investigator groups */ @Transient public List<InvestigatorGroup> getInvestigatorGroups() { return lazyListHelper.getLazyList(InvestigatorGroup.class); }
/** * Gets the investigator groups internal. * * @return the investigator groups internal */ @OneToMany(mappedBy = "healthcareSite", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = {CascadeType.ALL}) public List<InvestigatorGroup> getInvestigatorGroupsInternal() { return lazyListHelper.getInternalList(InvestigatorGroup.class); }