@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); List<Property<IdentityType>> relationshipIdentityTypes = PropertyQueries .<IdentityType> createQuery(getEntry().getClass()) .addCriteria(new TypedPropertyCriteria(IdentityType.class, MatchOption.SUB_TYPE)).getResultList(); for (Property<IdentityType> annotatedProperty : relationshipIdentityTypes) { IdentityType identityType = annotatedProperty.getValue(getEntry()); if (identityType != null) { this.identityTypeIds.put(IdentityTypeUtil.formatId(identityType), annotatedProperty.getName()); } } }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); List<Property<IdentityType>> relationshipIdentityTypes = PropertyQueries .<IdentityType> createQuery(getEntry().getClass()) .addCriteria(new TypedPropertyCriteria(IdentityType.class, MatchOption.SUB_TYPE)).getResultList(); for (Property<IdentityType> annotatedProperty : relationshipIdentityTypes) { IdentityType identityType = annotatedProperty.getValue(getEntry()); if (identityType != null) { this.identityTypeIds.put(IdentityTypeUtil.formatId(identityType), annotatedProperty.getName()); } } }
FileRelationship storedRelationship = partitionRelationships.get(id); if (storedRelationship != null && typeToSearch.isAssignableFrom(storedRelationship.getEntry().getClass())) { result.add((T) cloneAttributedType(context, storedRelationship.getEntry())); return result; boolean match = query.getParameters().isEmpty(); if (typeToSearch.isInstance(storedRelationship.getEntry())) { for (Entry<QueryParameter, Object[]> entry : query.getParameters().entrySet()) { QueryParameter queryParameter = entry.getKey(); Serializable value = property.getValue(storedRelationship.getEntry()); loadAttributes(context, storedRelationship.getEntry()); match = matchAttribute(storedRelationship.getEntry(), attributeParameter.getName(), values); T relationship = (T) cloneAttributedType(context, storedRelationship.getEntry());
FileRelationship storedRelationship = partitionRelationships.get(id); if (storedRelationship != null && typeToSearch.isAssignableFrom(storedRelationship.getEntry().getClass())) { result.add((T) cloneAttributedType(context, storedRelationship.getEntry())); return result; boolean match = query.getParameters().isEmpty(); if (typeToSearch.isInstance(storedRelationship.getEntry())) { for (Entry<QueryParameter, Object[]> entry : query.getParameters().entrySet()) { QueryParameter queryParameter = entry.getKey(); Serializable value = property.getValue(storedRelationship.getEntry()); loadAttributes(context, storedRelationship.getEntry()); match = matchAttribute(storedRelationship.getEntry(), attributeParameter.getName(), values); T relationship = (T) cloneAttributedType(context, storedRelationship.getEntry());