Date to a positional parameter.">
Jakarta Persistence (JPA) Method

Query setParameter(
  int position,
  Date value,
  TemporalType temporalType
)


Bind an instance of Date to a positional parameter.
Parameters:
position - position
temporalType - temporal type
value - parameter value
Returns:
the same query instance.
Throws:
IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type.
Deprecated:
Newly-written code should use the date/time types defined in java.time.
Since:
Jakarta Persistence (JPA) 1.0