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.
  • ResultSetMapping declares static factory convenience methods for instantiating the elements of a result set mapping.
  • ColumnMapping maps a single column of a SQL result set to a Java type.
  • FieldMapping maps a single column of a SQL result set to a field or property of an entity or embeddable class.
  • EntityMapping maps columns of a SQL result set to an entity class.
  • EmbeddedMapping maps columns of a SQL result set to an embeddable class.
  • ConstructorMapping allows a tuple of values to be packaged as an instance of a record or class defined by the application.
  • TupleMapping allows a tuple of values to be packaged as an instance of the class Tuple.
Since:
4.0