ObjectDB ObjectDB

Internal Website Search

1-10 of 36 resultsRefresh
140

Using Enum type in NamedQuery: Field is not found in type

JPA Named Query @NamedQuery(name = "TestQuery",                 query = "select obj from Obj
93

javax.persistence.NamedQueries

javax.persistence Annotation NamedQueries Target: Classes Specifies multiple named Java Persistence query language queries. Query names are scoped to the persistence unit. The NamedQueries annotation can be applied to an entity or mapped superclass. Since: JPA 1.0 See Also: NamedQuery Learn
89

javax.persistence.NamedQuery

javax.persistence Annotation NamedQuery Target: Classes Specifies a static, named query in the Java Persistence query language. Query names are scoped to the persistence unit. The NamedQuery ... of a named query in the Java Persistence query language: @NamedQuery( name
89

NamedQueries.value

Annotation Element javax.persistence.NamedQueries NamedQuery[] value (Required) An array of NamedQuery annotations. Since: JPA 1.0
84

NamedQuery.lockMode

Annotation Element javax.persistence.NamedQuery LockModeType lockMode (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction. Default value: javax.persistence.LockModeType.NONE Since: JPA 2.0
84

NamedQuery.hints

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

NamedQuery.query

Annotation Element javax.persistence.NamedQuery String query (Required) The query string in the Java Persistence query language. Since: JPA 1.0
84

NamedQuery.name

Annotation Element javax.persistence.NamedQuery String name (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0
78

JPA Named Queries

dynamically into the query string and results in more efficient queries. @NamedQuery and @NamedQueries Annotations The following @NamedQuery annotation defines a query whose name is "Country.findAll" that retrieves all the Country objects in the database: @NamedQuery(name="Country.findAll", query
30

JPA Query API

for building static queries, as named queries, using the @NamedQuery and @NamedQueries annotations

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