use of org.hibernate.metamodel.model.domain.internal.ArrayTupleType in project hibernate-orm by hibernate.
the class TypeConfiguration method resolveTupleType.
public SqmExpressible<?> resolveTupleType(List<? extends SqmTypedNode<?>> typedNodes) {
final SqmExpressible<?>[] components = new SqmExpressible<?>[typedNodes.size()];
for (int i = 0; i < typedNodes.size(); i++) {
final SqmExpressible<?> sqmExpressible = typedNodes.get(i).getNodeType();
components[i] = sqmExpressible != null ? sqmExpressible : getBasicTypeForJavaType(Object.class);
}
return arrayTuples.computeIfAbsent(new ArrayCacheKey(components), key -> new ArrayTupleType(key.components));
}
Aggregations