Spring Data JPA

org.springframework.data.jpa.repository
Annotation Type Temporal


@Retention(value=RUNTIME)
@Target(value=PARAMETER)
@Documented
public @interface Temporal

Annotation to declare an appropriate TemporalType on query method parameters. Note that this annotation can only be used on parameters of type Date.

Author:
Thomas Darimont, Oliver Gierke

Optional Element Summary
 javax.persistence.TemporalType value
          Defines the TemporalType to use for the annotated parameter.
 

value

public abstract javax.persistence.TemporalType value
Defines the TemporalType to use for the annotated parameter.

Default:
javax.persistence.TemporalType.DATE

Spring Data JPA

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.