com.samskivert.jdbc.depot.annotation
Annotation Type Index


@Target(value={})
@Retention(value=RUNTIME)
public @interface Index

Defines an index on an entity table.


Required Element Summary
 String name
          Defines the name of the index.
 
Optional Element Summary
 String[] fields
          Defines the fields on which the index operates.
 boolean unique
          Does this index enforce a uniqueness constraint?
 

Element Detail

name

public abstract String name
Defines the name of the index.

unique

public abstract boolean unique
Does this index enforce a uniqueness constraint?

Default:
false

fields

public abstract String[] fields
Defines the fields on which the index operates.

Default:
{}


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.