Top Description Methods
org.hibernate.query.named

public Interface NamedResultSetMappingMemento

Known Direct Implementers
org.hibernate.query.internal.NamedResultSetMappingMementoImpl
Annotations
@Incubating
Imports
java.util.function.Consumer, org.hibernate.Incubating, org.hibernate.query.internal.ResultSetMappingResolutionContext, org.hibernate.query.results.ResultSetMapping

Used to keep information about named result mappings defined by the application which can then be applied to native-sql and stored-procedure queries. These can be defined in a number of ways:
Authors
Emmanuel Bernard, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public String
getName()

The name associated with this memento

public void
resolve(ResultSetMapping resultSetMapping, Consumer<String> querySpaceConsumer, ResultSetMappingResolutionContext context)

Resolve this memento.

Method Detail

getNameback to summary
public String getName()

The name associated with this memento

resolveback to summary
public void resolve(ResultSetMapping resultSetMapping, Consumer<String> querySpaceConsumer, ResultSetMappingResolutionContext context)

Resolve this memento. Generally speaking, this involves building ResultBuilder instances for each defined result and registering them with the passed `resultSetMapping`. Any known query spaces should be passed to the `querySpaceConsumer`