@Override public <T> T get(Class<T> clazz, ID subject) { Assert.notNull(subject, "subject"); boolean polymorphic = true; MappedClass mappedClass = configuration.getMappedClass(clazz); polymorphic = isPolymorphic(mappedClass); return convertMappedObject(subject, clazz, polymorphic, false); }
@SuppressWarnings("unchecked") private Object convertMappedClass(NODE value, Class<?> targetClass, MappedPath propertyPath, MappedProperty mappedProperty) { if (value instanceof ID) { return convertMappedObject((ID) value, targetClass, isPolymorphic(mappedProperty), mappedProperty.isInjection()); } else { throw new BindException(propertyPath, value); } }
private <T> void findInstances(Class<T> clazz, UID type, final Set<T> instances) { MappedClass mappedClass = configuration.getMappedClass(clazz); boolean polymorphic = isPolymorphic(mappedClass); UID context = mappedClass.getContext();
private <T> void loadAll(Class<T> clazz, Collection<ID> ids, Set<ID> handled) { MappedClass mappedClass = configuration.getMappedClass(clazz); boolean polymorphic = isPolymorphic(mappedClass); UID context = mappedClass.getContext();
boolean polymorphic = isPolymorphic(mappedClass); UID context = mappedClass.getContext();