com.ikokoon.serenity.model
Annotation Type Unique


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

This annotation is to specify in the persistent entities which fields or combinations of fields are unique, acts something like a compound key declaration for the entities so that unique indexes can be built from the unique value combinations.

Since:
06.10.09
Version:
01.00
Author:
Michael Couck

Required Element Summary
 java.lang.String[] fields
          The unique fields combination in the object.
 

Element Detail

fields

public abstract java.lang.String[] fields
The unique fields combination in the object.

Returns:
the names of the unique field combination in the object


Copyright © 2010. All Rights Reserved.