Search in sources :

Example 1 with ArrayTupleType

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));
}
Also used : SqmExpressible(org.hibernate.query.sqm.SqmExpressible) ArrayTupleType(org.hibernate.metamodel.model.domain.internal.ArrayTupleType)

Aggregations

ArrayTupleType (org.hibernate.metamodel.model.domain.internal.ArrayTupleType)1 SqmExpressible (org.hibernate.query.sqm.SqmExpressible)1