org.compass.annotations
Annotation Type SearchableCascading


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

Allows to define cascading annotation which will result in certain operations done on the object that holds the property to be cascaded to its referenced objects.

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

converter

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

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 all operations being cascaded.

Default:
ALL


Copyright (c) 2004-2009 The Compass Project.