Fast Object Database for Java - with JPA/JDO support

Internal Website Search

1-10 of 10 resultsRefresh


javax.persistence Annotation NamedNativeQueries Target: Classes Used to specify multiple native SQL named queries. Query names are scoped to the persistence unit. The NamedNativeQueries annotation can be applied to an entity or mapped superclass. Since: JPA 1.0 See Also: NamedNativeQuery


Annotation Element javax.persistence.NamedNativeQueries NamedNativeQuery[] value (Required) Array of NamedNativeQuery annotations. Since: JPA 1.0


javax.persistence Annotation NamedNativeQuery Target: Classes Specifies a named native SQL query. Query names are scoped to the persistence unit. The NamedNativeQuery annotation can be applied to an entity or mapped superclass. Since: JPA 1.0 QueryHint[] hints Query properties and hints. Query


Annotation Element javax.persistence.NamedNativeQuery String resultSetMapping The name of a SqlResultSetMapping, as defined in metadata. Default value: "" Since: JPA 1.0


Annotation Element javax.persistence.NamedNativeQuery Class resultClass The class of the result. Default value: void.class Since: JPA 1.0


Annotation Element javax.persistence.NamedNativeQuery String query The SQL query string. Since: JPA 1.0

Annotation Element javax.persistence.NamedNativeQuery String name The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0


Annotation Element javax.persistence.NamedNativeQuery QueryHint[] hints Query properties and hints. (May include vendor-specific query hints.) Default value: {} Since: JPA 1.0

JPA Annotations for SQL Queries

Reference (JavaDoc) of JPA 2 sql query annotations.


javax.persistence Annotation QueryHint Target: Used to supply a query property or hint to the NamedQuery or NamedNativeQuery annotation. Vendor-specific hints that are not recognized by a provider are ignored. Since: JPA 1.0 String name Name of the hint. Name of the hint. Since: JPA 1.0 String

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support