Date to a Parameter<T> object.">
Jakarta Persistence (JPA) Method

TypedQuery<X> setParameter(
  Parameter<Date> param,
  Date value,
  TemporalType temporalType
)


Bind an instance of Date to a Parameter<T> object.
Parameters:
temporalType - temporal type
param - parameter object
value - parameter value
Returns:
the same query instance.
Throws:
IllegalArgumentException - if the parameter does not correspond to a parameter of the query.
Deprecated:
Newly-written code should use the date/time types defined in java.time.
Since:
Jakarta Persistence (JPA) 1.0