org.jpox.annotations
Annotation Type Unique


@Target(value={TYPE,FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Unique

Annotation for a JDO unique constraint. Maps across to the JDO2 element "unique".

Version:
$Revision: 1.1 $

Required Element Summary
 java.lang.String name
          Name of the unique constraint.
 java.lang.String table
          Table for the unique constraint (if required).
 
Optional Element Summary
 boolean deferred
          Whether this unique constraint is deferred
 

Element Detail

name

public abstract java.lang.String name
Name of the unique constraint.


table

public abstract java.lang.String table
Table for the unique constraint (if required).

deferred

public abstract boolean deferred
Whether this unique constraint is deferred

Default:
false


Copyright © 2003-2008 Java Persistent Objects (JPOX). All Rights Reserved.