Annotation Interface GeneratorOptimizer
@Target({METHOD,FIELD})
@Retention(RUNTIME)
@Incubating(since="8.0",
group="optimizer-ann")
public @interface GeneratorOptimizer
Explicitly selects a standard optimizer to use with identifier generation.
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@SequenceGenerator(sequenceName = "optimized_sequence", allocationSize = 20)
@GeneratorOptimizer(StandardOptimizerDescriptor.POOLED_LO)
Intended for use with GeneratedValue, usually
in combination with SequenceGenerator or
TableGenerator.
- Since:
- 8.0
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe optimization strategy to apply to generation.
-
Element Details
-
value
The optimization strategy to apply to generation.
-