About named queries

41-50 of 200Refresh
JPA Doc
29

createNamedQuery(name, resultClass)

> resultClass ) Create an instance of TypedQuery for executing a Java Persistence query language named ... to the type specified by the resultClass argument. Parameters: name - the name of a query defined in ... : IllegalArgumentException - if a query has not been defined with the given name or if the query string is found
JPA Doc
29

createNamedQuery(name)

Method javax.persistence.EntityManager Query createNamedQuery(   String name ) Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL). Parameters: name - the name of a query defined in metadata Returns: the new query instance Throws
JPA Doc
27

Entity.name

Annotation Element javax.persistence.Entity String name (Optional) The entity name. Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved literal in the Java Persistence query language. Default value: "" Since: JPA 1.0
JPA Doc
27

setParameter(name, value)

Method javax.persistence.TypedQuery TypedQuery setParameter(   String name,   Object value ) Bind an argument to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not
JPA Doc
27

setParameter(name, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   String name,   Calendar value,   TemporalType temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query
JPA Doc
27

setParameter(name, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   String name,   Date value,   TemporalType temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query instance
Manual
27

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison Operators ... , the JDO Query Language). ObjectDB supports both forms. Besides the different notation ... can be compared by using any comparison operator. Equality operators (=, <>, ==, !=) on strings in queries
JPA Doc
26

NamedNativeQuery.name

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
JPA Doc
26

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
Manual
26

Paths and Types in JPQL and Criteria API

through a NULL value The following query retrieves country names with their capital city names: SELECT ... , string, date). Simple type values are more useful in queries. They have special operators ... .capital.name is a nested path expression that continues from the Capital entity object to its name