Skip to content

Commit 461c145

Browse files
committed
add missing items to migration guide
1 parent efb8b2e commit 461c145

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

migration-guide.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,15 @@ We encourage migration to the use of the new JPA-standard operations.
516516
** Removed `AdditionalJaxbMappingProducer` -> `AdditionalMappingContributor`
517517
** Removed `MetadataContributor` -> `AdditionalMappingContributor`
518518
** Removed `EmptyInterceptor` -> implement `org.hibernate.Interceptor` directly
519+
** Removed `Session.LockRequest` -> use `LockOptions`
519520

520521
* Behavior
521522
** Removed `org.hibernate.Session#save` in favor of `org.hibernate.Session#persist`
522-
** Removed `org.hibernate.Session#saveOrUpdate` in favor `#persist` if the entity is transient or `#merge` if the entity is detached.
523+
** Removed `org.hibernate.Session#saveOrUpdate` in favor `#persist` if the entity is transient or `#merge` if the entity is detached
523524
** Removed `org.hibernate.Session#update` in favor of `org.hibernate.Session.merge`
524525
** Removed `org.hibernate.annotations.CascadeType.SAVE_UPDATE` in favor of `org.hibernate.annotations.CascadeType.PERSIST` + `org.hibernate.annotations.CascadeType.MERGE`
525526
** Removed `org.hibernate.Session#delete` in favor of `org.hibernate.Session#remove`
527+
** Removed `org.hibernate.Session#load` in favor of `org.hibernate.Session#find`
526528
** Removed `org.hibernate.annotations.CascadeType.DELETE` in favor of `org.hibernate.annotations.CascadeType#REMOVE`
527529
** Removed `org.hibernate.Session#refresh(String entityName, Object object)` in favor of `org.hibernate.Session#refresh(Object object)`
528530
** Removed `org.hibernate.Session#refresh(String entityName, Object object, LockOptions lockOptions)` in favor of `org.hibernate.Session#refresh(Object object, LockOptions lockOptions)`
@@ -548,7 +550,7 @@ We encourage migration to the use of the new JPA-standard operations.
548550
[[reorg]]
549551
== Reorganize Packages (for api/spi/internal, etc)
550552

551-
* Re-organized the `org.hibernate.query.results` package
553+
* Reorganized the `org.hibernate.query.results` package
552554

553555

554556
[[todo]]

0 commit comments

Comments
 (0)