/** * Returns the page parent. * * @return the parent */ @ManyToOne public abstract Page getParent();
private RelationshipMapping.ManyToOne.Reference createReferenceManyToOne(ManyToOne annotation, PropertyInfo<BeanValueInfo, ValueKind.Single> property) { MappedBy mappedBy = property.getAnnotation(MappedBy.class); if (mappedBy == null) { throw new InvalidMappingException(property.getOwner().getClassType(), "The reference @ManyToOne relationship " + property + "must carry an @MappedBy annotation"); } RelationshipMapping.ManyToOne.Reference mapping; mapping = new RelationshipMapping.ManyToOne.Reference(property, mappedBy.value(), annotation.type()); mapping.relatedBeanMapping = resolve(property.getValue().getBean()); return mapping; }
switch (manyToOne.type()) { case HIERARCHIC: mapping = createHierarchicManyToOne(beanMapping, manyToOne, (PropertyInfo<BeanValueInfo, ValueKind.Single>)property); property + " to be annotated with " + RelationshipType.HIERARCHIC + ", " + RelationshipType.PATH + " or " + RelationshipType.REFERENCE + " instead of " + manyToOne.type());
@ManyToOne public abstract NTFolder getParent();
@ManyToOne public abstract PageImpl getParentPage();
@ManyToOne public abstract ConsumerMapping getParent();
@ManyToOne public abstract Object getOwner();
@ManyToOne public abstract UIContainerImpl getParentContainer();
@ManyToOne public abstract ContextTypeContainer getContainer();
@ManyToOne public abstract PageContainer getParentContainer();
@ManyToOne public abstract C getSites();
@ManyToOne public abstract NTFolder getParent();
@ManyToOne public abstract NavigationContainer getParentContainer();
@ManyToOne public abstract ContextType getContextType();
/** * Returns the content associated to this page. * * @return the content */ @ManyToOne(type = RelationshipType.REFERENCE) @MappedBy("content") public abstract Content getContent();
@ManyToOne public abstract C getCParent(); }
@ManyToOne public abstract A4 getParent(); }
@ManyToOne public abstract A1 getParent2(); }
@ManyToOne public abstract A3 getParent();
@ManyToOne public abstract A getAParent();