Skip to content

Commit 44c62a5

Browse files
committed
add a note about eviction after truncation to jdoc
1 parent 8dae9d5 commit 44c62a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public interface SchemaManager extends jakarta.persistence.SchemaManager {
7171
* load script}.
7272
* <p>
7373
* Programmatic way to run {@link org.hibernate.tool.schema.spi.SchemaTruncator}.
74+
* <p>
75+
* This operation does not affect the {@linkplain org.hibernate.Cache second-level cache}.
76+
* Therefore, after calling {@code truncate()}, it might be necessary to also call
77+
* {@link org.hibernate.Cache#evictAllRegions} to clean up data held in the second-level
78+
* cache.
7479
*
7580
* @apiNote This operation is a synonym for {@link #truncate}.
7681
*/

0 commit comments

Comments
 (0)