org.hibernate.Session#get
or org.hibernate.Session#find .
The given SQL statement must have exactly the number
of JDBC ? parameters that Hibernate expects, that is, one for
each column of:
Optionally, an explicit result set mapping may be specified. It should have:
jakarta.persistence.EntityResult , if the SQL query
loads an entity,
one-to-many association,
or many-to-many association,
or
jakarta.persistence.ColumnResult or
jakarta.persistence.ConstructorResult , if the SQL query
loads an collection
of basic-typed values.
Implementation Note
This annotation is just an abbreviation for Loader
together with NamedNativeQuery.
HQLSelect, DialectOverride.SQLSelect
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public SqlResultSetMapping | |
| public String |
| querySpaces | back to summary |
|---|---|
| public String[] querySpaces() The query spaces involved in this query. | |
| resultSetMapping | back to summary |
|---|---|
| public SqlResultSetMapping resultSetMapping() A | |
| sql | back to summary |
|---|---|
| public String sql() The SQL | |