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