@@ -91,17 +91,19 @@ public interface SchemaToolingSettings {
91
91
* Specifies the CREATE script file as either a {@link java.io.Reader} configured for reading
92
92
* the DDL script file or a string designating a file {@link java.net.URL} for the DDL script.
93
93
* <p>
94
- * Hibernate historically also accepted {@link #HBM2DDL_IMPORT_FILES} for a similar purpose.
95
- * This setting is now preferred .
94
+ * The script should contain mostly DDL {@code CREATE} statements. For importing data using DML,
95
+ * use {@link #JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE} .
96
96
*
97
97
* @see #JAKARTA_HBM2DDL_CREATE_SOURCE
98
- * @see #HBM2DDL_IMPORT_FILES
98
+ * @see #JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE
99
99
*/
100
100
String JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE = "jakarta.persistence.schema-generation.create-script-source" ;
101
101
102
102
/**
103
103
* Specifies the DROP script file as either a {@link java.io.Reader} configured for reading
104
104
* the DDL script file or a string designating a file {@link java.net.URL} for the DDL script.
105
+ * <p>
106
+ * The script should contain mostly DDL {@code DROP} statements.
105
107
*
106
108
* @see #JAKARTA_HBM2DDL_DROP_SOURCE
107
109
*/
@@ -129,10 +131,23 @@ public interface SchemaToolingSettings {
129
131
130
132
/**
131
133
* JPA-standard variant of {@link #HBM2DDL_IMPORT_FILES} for specifying a database
132
- * initialization script to be run as part of schema-export
134
+ * initialization script to be run after {@linkplain org.hibernate.relational.SchemaManager
135
+ * exporting or truncating the database schema}.
133
136
* <p>
134
137
* Specifies a {@link java.io.Reader} configured for reading of the SQL load script
135
138
* or a string designating the {@link java.net.URL} for the SQL load script.
139
+ * <p>
140
+ * The script should contain mostly DML {@code INSERT} statements. For DDL schema creation,
141
+ * use {@link #JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE}
142
+ * <p>
143
+ * Hibernate historically also accepted {@link #HBM2DDL_IMPORT_FILES} for a similar purpose.
144
+ * This setting is now preferred.
145
+ *
146
+ * @see #JAKARTA_HBM2DDL_DATABASE_ACTION
147
+ * @see #JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE
148
+ * @see org.hibernate.relational.SchemaManager#populate
149
+ * @see org.hibernate.relational.SchemaManager#exportMappedObjects
150
+ * @see org.hibernate.relational.SchemaManager#truncateMappedObjects
136
151
*/
137
152
String JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE = "jakarta.persistence.sql-load-script-source" ;
138
153
0 commit comments