Java Persistence/Querying - Wikibooks, open books for an open world - 0 views
-
Result Set Mapping
-
When a native SQL query returns objects, the SQL must ensure it returns the correct data to build the resultClass using the correct column names as specified in the mappings. If the SQL is more complex and returns different column names, or returns data for multiple objects then a @SqlResultSetMapping must be used.
-
@NamedNativeQuery
- ...7 more annotations...