/** * Returns the content associated to this page. * * @return the content */ @ManyToOne(type = RelationshipType.REFERENCE) @MappedBy("content") public abstract Content getContent();
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; }
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; }
/** * Returns all the pages associated with this content. * * @return the associated pages */ @OneToMany(type = RelationshipType.REFERENCE) @MappedBy("content") public abstract Collection<Page> getPages(); }
/** * Returns the parent site. * * @return the parent site */ @OneToOne @MappedBy("root") public abstract WebSite getSite();
@OneToOne @MappedBy("mop:children") public abstract PageImpl getOwner();
@OneToMany(type = RelationshipType.PATH) @MappedBy("mop:template") public abstract Collection<PageImpl> getTemplatizedPages();
@OneToOne @MappedBy("mop:rootnavigation") public abstract SiteImpl getParentSite();
@OneToMany(type = RelationshipType.PATH) @MappedBy("group") public abstract Collection<ConsumerMapping> getConsumers();
@OneToOne @MappedBy("mop:children") public abstract NavigationImpl getOwner();
@OneToMany(type = RelationshipType.PATH) @MappedBy("mop:template") public abstract Collection<NavigationImpl> getTemplatizedNavigations();
@OneToOne @MappedBy("mop:rootpage") public abstract SiteImpl getSiteParent();
@OneToOne @MappedBy("mop:contexttypes") public abstract AbstractCustomization getCustomization();
/** * Returns the root page of the website. * * @return the root page */ @Owner @OneToOne @MappedBy("root") public abstract Page getRootPage();
@OneToOne @MappedBy("mop:template") @Owner public abstract PathAttribute getRelatedTemplate();
@ManyToOne(type = RelationshipType.PATH) @MappedBy("mop:customization") @Owner public abstract WorkspaceCustomization getCustomization();
@OneToOne @MappedBy("mop:groupsites") @Owner public abstract GroupSiteContainer getGroupSites();
@OneToOne @MappedBy("mop:children") @Owner public abstract PageContainer getChildrenContainer();
@OneToOne @MappedBy("mop:usersites") @Owner public abstract UserSiteContainer getUserSites();
@OneToOne @Owner @MappedBy("registrationrequirements") public abstract RegistrationRequirementsMapping getRegistrationRequirements();