Skip to content

Commit dc58553

Browse files
committed
document that Optimizers are specific to @SequenceGenerator and @TableGenerator
1 parent 47cad97 commit dc58553

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hibernate-core/src/main/java/org/hibernate/id/enhanced/Optimizer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* this optimization takes the form of trying to ensure we do not have to
1616
* hit the database on each and every request to get an identifier value.
1717
* <p>
18+
* Optimizers are used with
19+
* {@linkplain jakarta.persistence.SequenceGenerator sequence generators}
20+
* and {@linkplain jakarta.persistence.TableGenerator table generators}.
1821
* An optimizer may be selected by setting the configuration property
1922
* {@value org.hibernate.cfg.MappingSettings#PREFERRED_POOLED_OPTIMIZER}.
2023
* <p>

0 commit comments

Comments
 (0)