org.hibernate.Session#get
or org.hibernate.Session#find .
The given HQL query must have exactly one parameter which accepts the id of the entity or of the entity which owns the collection. It must return a single item in the select list, and that item must be the correct type of entity or collection element.
Implementation Note
This annotation is just an abbreviation for Loader
together with NamedQuery.
SQLSelect
| Modifier and Type | Method and Description |
|---|---|
| public String |
| query | back to summary |
|---|---|
| public String query() The HQL | |