org.synyx.hades.dao
Annotation Type Query


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface Query

Annotation to declare finder queries directly on DAO methods.

Author:
Oliver Gierke

Optional Element Summary
 java.lang.String countQuery
          The count query to be used.
 java.lang.String value
          The actual JPA query to be triggered.
 

value

public abstract java.lang.String value
The actual JPA query to be triggered.

Returns:
Default:
""

countQuery

public abstract java.lang.String countQuery
The count query to be used. If nothing provided here we will try to lookup the count query from the query defined in value().

Returns:
Default:
""


Copyright © 2009-2010 Synyx GmbH & Co. KG. All Rights Reserved.