JPA Annotations for SQL Queries
The following JPA annotations are designated for SQL queries on relational databases:
- javax.persistence.ColumnResult
- javax.persistence.EntityResult
- javax.persistence.FieldResult
- javax.persistence.NamedNativeQueries
- javax.persistence.NamedNativeQuery
- javax.persistence.SqlResultSetMapping
- javax.persistence.SqlResultSetMappings
ObjectDB supports only the preferred JPA query language, JPQL, and silently ignores all the above annotations.