Class SqlResultSetMappingDescriptor
java.lang.Object
org.hibernate.boot.query.SqlResultSetMappingDescriptor
- All Implemented Interfaces:
NamedResultSetMappingDescriptor
public class SqlResultSetMappingDescriptor
extends Object
implements NamedResultSetMappingDescriptor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionfrom(NamedNativeQuery namedNativeQuery) from(NamedNativeQuery namedNativeQuery, String location) from(SqlResultSetMapping mappingAnnotation) from(SqlResultSetMapping mappingAnnotation, String name) from(SqlResultSetMapping mappingAnnotation, String name, String location) from(String name, EntityResult[] entityResults, ConstructorResult[] constructorResults, ColumnResult[] columnResults) from(String name, EntityResult[] entityResults, ConstructorResult[] constructorResults, ColumnResult[] columnResults, String location) The location at which the defining result set mapping annotation occurs, usually a class or package name.The name under which the result-set-mapping is to be registeredresolve(org.hibernate.query.internal.ResultSetMappingResolutionContext resolutionContext) Create a representation of the described ResultSet mapping for the purpose of being stored in Hibernate'sNamedObjectRepository
-
Method Details
-
from
public static SqlResultSetMappingDescriptor from(SqlResultSetMapping mappingAnnotation, String name) -
from
public static SqlResultSetMappingDescriptor from(SqlResultSetMapping mappingAnnotation, String name, @Nullable String location) -
from
-
from
public static SqlResultSetMappingDescriptor from(NamedNativeQuery namedNativeQuery, @Nullable String location) -
from
public static SqlResultSetMappingDescriptor from(String name, EntityResult[] entityResults, ConstructorResult[] constructorResults, ColumnResult[] columnResults) -
from
public static SqlResultSetMappingDescriptor from(String name, EntityResult[] entityResults, ConstructorResult[] constructorResults, ColumnResult[] columnResults, @Nullable String location) -
from
-
getRegistrationName
Description copied from interface:NamedResultSetMappingDescriptorThe name under which the result-set-mapping is to be registered- Specified by:
getRegistrationNamein interfaceNamedResultSetMappingDescriptor
-
getLocation
Description copied from interface:NamedResultSetMappingDescriptorThe location at which the defining result set mapping annotation occurs, usually a class or package name. Null for result set mappings declared in XML or otherwise not associated with a static metamodel class.- Specified by:
getLocationin interfaceNamedResultSetMappingDescriptor
-
resolve
public NamedResultSetMappingMemento resolve(org.hibernate.query.internal.ResultSetMappingResolutionContext resolutionContext) Description copied from interface:NamedResultSetMappingDescriptorCreate a representation of the described ResultSet mapping for the purpose of being stored in Hibernate'sNamedObjectRepository- Specified by:
resolvein interfaceNamedResultSetMappingDescriptor- See Also:
-