File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
hibernate-core/src/main/java/org/hibernate/relational Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments