IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.annotations
Annotation Type Basic


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Basic

Identifies a field or method as a basic persistable attribute.

Since:
WAS XD 6.1

Optional Element Summary
 String alias
          The alternative name for this attribute.
 FetchType fetch
          Suggestion to the projector on how to retrieve the data for this attribute.
 

alias

public abstract String alias
The alternative name for this attribute. The alias can be used to map one entity to another or override the default property name behavior in legacy objects. It can also be used to refer to this attribute in queries.

Returns:
the alias name.
Default:
""

fetch

public abstract FetchType fetch
Suggestion to the projector on how to retrieve the data for this attribute.

The EAGER strategy instructs the projector to to eagerly fetch the data. The LAZY strategy is a hint to the projector to lazily fetch the data when it is first accessed.

Primitives (values that have no null value) are always fetched eagerly.

Returns:
the FetchType hint.
Default:
com.ibm.websphere.projector.annotations.FetchType.EAGER

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.