Executes an update based on this query.
Returns the results of the query as a Seq[A]
.
Returns a single result of the query as an Option.
Returns a single result of the query as an Option. If more than one result is found, a NonUniqueResultException is thrown.
Returns the results of the query as a Seq[A]
Returns a single result of the query as an Option.
Returns a single result of the query as an Option. If more than one result is found, a NonUniqueResultException is thrown. If no results are found, a NoResultException is thrown.
Sets the index of the first result to be returned.
Sets the index of the first result to be returned. Used for pagination.
Sets the flush mode for the current query.
Sets the hints for this query.
Sets the hints for this query. Hints are provider-specific.
The name of the hint
The value of the hint
Sets the maximum number of results that will be returned.
Sets the maximum number of results that will be returned. Used for pagination.
Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.
Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.
Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.
Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.
Sets the given positional parameter for this query to the given value.
Sets the given named parameter for this query to the given value.
Sets the parameters for this query from the given name->value pairs.
Sets the parameters for this query from the given name->value pairs. An example is:
val query = ...
query.setParams("name" -> "fred", "age" -> 12)
This class represents a Scalafied version of the JPA Query class. Big features include better type safety and returning results as Lists. Instances of this class should be obtained via a ScalaEntityManager instance.