Package jakarta.persistence.sql
package jakarta.persistence.sql
Defines an API for the programmatic definition of SQL result set
mappings to Java classes. This API is an alternative to defining
such mappings using the annotation
SqlResultSetMapping.
ResultSetMappingdeclares static factory convenience methods for instantiating the elements of a result set mapping.ColumnMappingmaps a single column of a SQL result set to a Java type.FieldMappingmaps a single column of a SQL result set to a field or property of an entity or embeddable class.EntityMappingmaps columns of a SQL result set to an entity class.EmbeddedMappingmaps columns of a SQL result set to an embeddable class.ConstructorMappingallows a tuple of values to be packaged as an instance of a record or class defined by the application.TupleMappingallows a tuple of values to be packaged as an instance of the classTuple.
- Since:
- 4.0
-
ClassDescriptionMaps a column of a JDBC
ResultSetto a scalar value in the result returned by the query.Maps a JDBCResultSetto a tuple of values packaged as an object array.Maps columns of a JDBCResultSetto parameters of the constructor of a Java class.EmbeddedMapping<C,T> Maps columns of a JDBCResultSetto a given embedded object.FieldMapping<C,T> Maps a column of a JDBCResultSetto a given field or column of an entity or embeddable type.Supertype of objects which map a column or columns of a JDBCResultSetto a Java type returned by the query.Supertype of objects which map a column or columns of a JDBCResultSetto a member of an entity or embeddable type.Specifies a mapping of the columns of a result set of a SQL query or stored procedure to entities, scalar values, and Java class constructors.