-
@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 JPAQL query. Provides result auto-boxing and automatic parameter binding.
- Author:
- Dhanji R. Prasanna (dhanji@gmail.com)
-
-
Optional Element Summary
Optional Elements
Modifier and Type |
Optional Element and Description |
String |
namedQuery
Returns the configured named query's name.
|
String |
query
Returns the configured query string.
|
Class<? extends Collection> |
returnAs
Returns the configured autoboxing collection class.
|
-
-
Element Detail
-
returnAs
public abstract Class<? extends Collection> returnAs
Returns the configured autoboxing collection class. Use this clause to specify a collection
impl to autobox result lists into. The impl must have a default no-arg constructor and be a
subclass of java.util.Collection
.
- Default:
- java.util.Collection.class
Copyright © 2006–2018 Google, Inc.. All rights reserved.