|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Finder
Marks a method stub as a dynamic finder. The method is intercepted and replaced with the specified HQL or JPAQL query. Provides result auto-boxing and automatic parameter binding.
Optional Element Summary | |
---|---|
String |
namedQuery
Specify a named query's name here, typically using the @NamedQuery annotation. |
String |
query
Directly specify a query here, hql or jpaql. |
Class<? extends Collection> |
returnAs
Use this clause to specify a collection impl to autobox result lists into. |
Class<? extends Annotation> |
unit
|
public abstract Class<? extends Annotation> unit
public abstract String namedQuery
@NamedQuery
annotation.
public abstract String query
public abstract Class<? extends Collection> returnAs
java.util.Collection
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |