net.java.ao.schema.Index Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activeobjects-core Show documentation
Show all versions of activeobjects-core Show documentation
This is the core library for Active Objects. It is generic and can be embedded in any environment.
As such it is generic and won't contain all connection pooling, etc.
package net.java.ao.schema;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a database index.
*
*
* The index can be either simple or composite.
* Please note that the actual name of the index may differ. This field is case insensitive.
*
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({})
public @interface Index {
/**
* @return the table unique index name.
*/
String name();
/**
* @return an array of accessors or mutators to the columns that should be included in the index.
*/
String[] methodNames();
}