@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface GeneratorType
ValueGenerator
type to be used for generating the value. It is
the responsibility of the client to ensure that a generator type is specified which matches the data type of the
annotated property.Modifier and Type | Required Element and Description |
---|---|
Class<? extends ValueGenerator<?>> |
type
The value generator type
|
Modifier and Type | Optional Element and Description |
---|---|
GenerationTime |
when
When to generate the value, either only during insert or during insert and update of the hosting entity.
|
public abstract Class<? extends ValueGenerator<?>> type
public abstract GenerationTime when
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.