org.apache.cayenne.lifecycle.sort
Annotation Type SortWeight


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface SortWeight

An annotation that defines the insertion sorting "weight" of an entity that is used when sorting DB operations. This annotation allows to override the topological sorting algorithm used by Cayenne by default in special occasions.

Since:
3.1

Optional Element Summary
 int value
          Returns the "weight" of the entity used for the purpose of the DB operations sorting.
 

value

public abstract int value
Returns the "weight" of the entity used for the purpose of the DB operations sorting. Entities with lower values will be inserted before entities with higher values. The opposite is true for the delete operations.

Default:
1


Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.