Interface ResultBuilder

All Superinterfaces:
GraphNodeBuilder
All Known Subinterfaces:
ResultBuilderBasicValued, ResultBuilderEntityValued, ResultBuilderInstantiationValued
All Known Implementing Classes:
GeneratedValueBasicResultBuilder

@Incubating(since="8.0") @SPI({USE,IMPLEMENT,SUPPLY}) public interface ResultBuilder extends GraphNodeBuilder

Builds one DomainResult for a native-query result-set mapping.

Given select b from Book b join fetch b.authors, the result builder produces the single Book(b) result. Implement this contract when a provider needs a custom result shape, and register the instance through ResultSetMapping.addResultBuilder(ResultBuilder).

See Also: