net.java.ao.schema
Annotation Type Unique


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Unique

Marks a method such that the corresponding database field will have a UNIQUE constraint. This constraint is implemented within the underlying database and is not enforced by ActiveObjects itself.

This annotation is only relevant to migrations. It has no effect upon "runtime" entity usage.

Author:
Daniel Spiewak



Copyright © 2007-2010. All Rights Reserved.