org.kuali.rice.core.framework.persistence.jpa.annotations
Annotation Type Sequence


@Documented
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
public @interface Sequence

Annotation for mimicing auto-incrementing fields. Currently, only one auto- incrementing field is allowed per entity, but could be modified in the future if required (just add a @Sequences annotation that help an array of @Sequence annotations). This is used in conjunction with the Kuali sequence managers rather than the standard JPA generated value annotations. The reason is that Kuali uses a sequence like algorithm for all supported databases (mysql, oracle) rather than identity or auto-incrementing fields.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Required Element Summary
 String name
           
 String property
           
 

Element Detail

name

public abstract String name

property

public abstract String property


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.