|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface SearchableReference
Specifies a searchable reference on property or field of the Searchable class.
Collection type field/property,
supporting either List or Set. The searchable refrence
will try and automatically identify the element type using generics, but if the collection
is not defined with generics, refAlias() should be used to reference the referenced
searchable class mapping definitions.
The searchable compoent can annotate an array as well, with the array element type used for
refernced searchable class mapping definitions.
The refence mapping can have a "shadow" component mapping associated with it, if specifing
the refComponentAlias().
| Optional Element Summary | |
|---|---|
String |
accessor
The property accessor that will be fetch and write the property value. |
Cascade[] |
cascade
The operations that will cascade to the target association. |
String |
converter
The conveter lookup name that will convert the ReferenceMapping. |
Lazy |
lazy
Should this refernce mapping (only in case of collection) will be lazy or not. |
String |
refAlias
The reference alias that points to the searchable class (either defined using annotations or xml). |
String |
refComponentAlias
Specifies a reference to a searchable component that will be used to embed some of the referenced class searchable content into the field/property searchable class. |
public abstract String refAlias
public abstract String refComponentAlias
public abstract Cascade[] cascade
public abstract String converter
ReferenceMapping.
Defaults to compass own intenral ReferenceMappingConverter.
public abstract String accessor
It is automatically set based on where the annotation is used, but can be explicitly set. Compass also supports custom property accessors, registered under a custom name, which can then be used here as well.
public abstract Lazy lazy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||