Skip to content

Commit a43dafd

Browse files
gavinkingsebersole
authored andcommitted
add some new features to the migration guide
1 parent 8b43fdc commit a43dafd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

migration-guide.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,20 @@ In Hibernate 7, the configuration property `hibernate.jdbc.batch_size` now has n
212212
Automatic batching may be enabled by explicitly calling `setJdbcBatchSize()`.
213213
However, the preferred approach is to explicitly batch operations via `insertMultiple()`, `updateMultiple()`, or `deleteMultiple()`.
214214

215+
[[session-find-multiple]]
216+
=== findMultiple()
217+
218+
The new operation `Session.findMultiple()`, along with the `BatchSize` option provides a convenient way to fetch a batch of entities by id.
219+
220+
[[session-managed-entities]]
221+
=== Direct access to first-level cache
222+
223+
The new operation `Session.getManagedEntities()` allows the application program to iterate over all entities in the first-level cache, or over all entities of a given type.
224+
225+
[[schema-manager-populate]]
226+
=== Data population
227+
228+
`SchemaManager.populate()` populates an existing schema with initial data in `/import.sql` or other SQL scripts specified via `jakarta.persistence.sql-load-script-source`.
215229

216230

217231
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)