Skip to content

Commit

Permalink
[Enhancement kbss-cvut#283] Add handling for Object properties
Browse files Browse the repository at this point in the history
  • Loading branch information
luxbe committed Nov 20, 2024
1 parent 759a9c0 commit 9c8c167
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ private void createQueryAttribute(Field field, Class<?> fieldValueCls) {
final AbstractAttribute<X, ?> a;
if (property.getAnnotation(RDFContainer.class) != null) {
a = createRdfContainerAttribute(property, inference, propertyAttributes);
} else if (property.getType().isAssignableFrom(Object.class)) {
final SingularAttributeImpl.SingularAttributeBuilder builder = setCommonBuildParameters(SingularAttributeImpl.builder(propertyAttributes),
property, inference);
context.getConverterResolver().resolveConverter(property, propertyAttributes).ifPresent(builder::converter);
a = builder.build();
} else if (property.getType().isAssignableFrom(Collection.class)) {
final AbstractPluralAttribute.PluralAttributeBuilder builder = setCommonBuildParameters(CollectionAttributeImpl.builder(propertyAttributes),
property, inference);
Expand Down

0 comments on commit 9c8c167

Please sign in to comment.