org.milyn.scribe.annotation
Annotation Type Lookup


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

Indicates that this method looks entities up.

The method can have one or more parameters. With the Param annotation the parameters can be 'named'. This makes it possible to reference the parameter by its name instead of its position. If one parameter is annotated with the Param parameter then all the parameters need to be annotated. If no parameters are annotated then the parameters need to be referenced by there position, starting by zero.

This annotation should only be used on classes that are annotated with the Dao annotation.

Author:
maurice.zeijen@smies.com

Optional Element Summary
 String name
          The name of the lookup operation.
 

name

public abstract String name
The name of the lookup operation. If it is not set then the name of the method will be the name of the operation.

Returns:
the operation name
Default:
""


Copyright © 2011. All Rights Reserved.