org.compass.annotations
Annotation Type SearchableParent


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

Specifies a parent reference for SearchableComponent.

If a SearchableComponent has a reference it it's parent, the annotation will make sure that this reference will be initalized when the Searchable class is loaded from the index.

Author:
kimchy

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 ParentMapping.
 

converter

public abstract String converter
The conveter lookup name that will convert the ParentMapping. Defaults to compass own intenral ParentMappingConverter.

Default:
""

accessor

public abstract String accessor
The property accessor that will be fetch and write the property value.

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.

Default:
""

cascade

public abstract Cascade[] cascade
The operations that will cascade to the target association. Defaults to no operations being cascaded.

Default:
{}


Copyright (c) 2004-2009 The Compass Project.