/** * Returns the collection of page children. * * @return the children */ @OneToMany public abstract Collection<Page> getChildren();
private RelationshipMapping.OneToMany.Reference createReferenceOneToMany(OneToMany annotation, PropertyInfo<BeanValueInfo, ?> property) { MappedBy mappedBy = property.getAnnotation(MappedBy.class); if (mappedBy == null) { throw new InvalidMappingException(property.getOwner().getClassType(), "The reference @OneToMany relationship " + property + "must carry an @MappedBy annotation"); } RelationshipMapping.OneToMany.Reference mapping; mapping = new RelationshipMapping.OneToMany.Reference(property, mappedBy.value(), annotation.type()); mapping.relatedBeanMapping = resolve(property.getValue().getBean()); return mapping; }
if (annotation instanceof OneToMany) { OneToMany oneToMany = (OneToMany)annotation; switch (oneToMany.type()) { case HIERARCHIC: mapping = createHierarchicOneToMany(beanMapping, oneToMany, (PropertyInfo<BeanValueInfo, ?>)property); property + " to be annotated with " + RelationshipType.HIERARCHIC + ", " + RelationshipType.PATH + " or " + RelationshipType.REFERENCE + " instead of " + oneToMany.type());
@OneToMany public abstract Map<String, NTHierarchyNode> getChildren();
@OneToMany public abstract Map<String, NavigationImpl> getNavigationMap();
@OneToMany public abstract Map<String, T> getSites();
@OneToMany public abstract List<ProducerInfoMapping> getProducerInfos();
@OneToMany public abstract List<RegistrationPropertyMapping> getRegistrationProperties();
@OneToMany public abstract List<ExportInfoMapping> getExportInfos();
@OneToMany public abstract List<NavigationImpl> getNavigationList();
@OneToMany public abstract Map<String, UIComponentImpl> getComponentMap();
@OneToMany public abstract List<UIComponentImpl> getComponentList();
@OneToMany public abstract Collection<PortletContextMapping> getPortletContexts();
@OneToMany protected abstract List<ExportErrorMapping> getErrors();
@OneToMany public abstract Map<String, NTHierarchyNode> getChildren();
@OneToMany public abstract Map<String, ProducerInfoMapping> getNameToProducerInfoMap();
@OneToMany public abstract List<RegistrationMapping> getRegistrations();
@OneToMany public abstract Map<String, WorkspaceCustomization> getCustomizations();
@OneToMany public abstract Map<String, ContextType> getContextTypes();
@OneToMany public abstract Map<String, Attribute> getChildren();