Skip to content

Commit 479ce0a

Browse files
committed
HHH-19801 update Javadoc
1 parent 838db7b commit 479ce0a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hibernate-core/src/main/java/org/hibernate/relational/SchemaManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ public interface SchemaManager extends jakarta.persistence.SchemaManager {
6767
void validateMappedObjects();
6868

6969
/**
70-
* Truncate the database tables mapped by Hibernate entities, and then
70+
* Truncate the database tables mapped by Hibernate entities, reset all associated
71+
* {@linkplain jakarta.persistence.SequenceGenerator sequences} and tables backing
72+
* {@linkplain jakarta.persistence.TableGenerator table generators}, and then
7173
* reimport initial data from {@code /import.sql} and any other configured
7274
* {@linkplain org.hibernate.cfg.AvailableSettings#JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE
7375
* load script}.
@@ -88,6 +90,10 @@ public interface SchemaManager extends jakarta.persistence.SchemaManager {
8890
* {@linkplain org.hibernate.cfg.AvailableSettings#JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE
8991
* load script}.
9092
* <p>
93+
* This operation does not automatically resynchronize sequences or tables backing
94+
* {@linkplain jakarta.persistence.TableGenerator table generators}, and so it might
95+
* be necessary to call {@link #resynchronizeGenerators} after calling this method.
96+
* <p>
9197
* Programmatic way to run {@link org.hibernate.tool.schema.spi.SchemaPopulator}.
9298
*
9399
* @since 7.0

0 commit comments

Comments
 (0)