|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface SearchableComponent
Specifies a searchable component on property or field of the Searchable class.
A searchable component is a class field/property that reference another class, which
content need to be embedded into the content of its Searchable class. It will
results in searches performed on the component class to return the component field/property
searchable class.
The referenced class must have searchable definitions, defined either using annotations or other means (like xml).
Compass will try to automatically identify the searchable class mapping definitions that
map to the component class. If the mappings can not be automatically identified, the
refAlias() should be used to reference the alias that has the searchable class
mapping definition.
The searchable component can annotate a Collection type field/property,
supporting either List or Set. The searchable component
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 component
searchable class mapping definitions.
The searchable component can annotate an array as well, with the array element type used for referenced searchable class mapping definitions.
Searchable,
SearchableReference| 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 ComponentMapping. |
int |
maxDepth
The depth of cyclic component references allowed. |
boolean |
override
Should the component definitions override an already existing component definitions for the same field/property. |
String |
prefix
An optional prefix that will be appended to all the component referenced class mappings. |
String |
refAlias
The reference alias that points to the searchable class (either defined using annotations or xml). |
public abstract String refAlias
public abstract boolean override
public abstract Cascade[] cascade
public abstract int maxDepth
public abstract String prefix
public abstract String converter
ComponentMapping.
Defaults to compass own intenral ComponentMappingConverter.
public abstract String accessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||