JiveID.java 463 Bytes
Newer Older
1 2
package org.jivesoftware.database;

3 4 5 6 7
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;

8 9 10 11 12
/**
 * Used to specify what jive id an object should have
 *
 * @author Andrew Wright
 */
13 14
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
15
public @interface JiveID {
16

17 18 19 20 21
    /**
     * should return the int type for this object
     */
    int value();
}