Skip to content

Commit 696d736

Browse files
committed
javadoc improvements
1 parent acb1398 commit 696d736

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

hibernate-core/src/main/java/org/hibernate/Interceptor.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@
3939
* Whichever approach is used, the interceptor must be serializable for the
4040
* {@code Session} to be serializable. This means that {@code SessionFactory}-scoped
4141
* interceptors should implement {@code readResolve()}.
42-
* <p>
43-
* This venerable callback interface, dating to the very earliest days of Hibernate,
44-
* competes with JPA entity listener callbacks: {@link jakarta.persistence.PostLoad},
45-
* {@link jakarta.persistence.PrePersist} {@link jakarta.persistence.PreUpdate}, and
46-
* {@link jakarta.persistence.PreRemove}.
42+
*
43+
* @apiNote This venerable callback interface, dating from the very earliest days of
44+
* Hibernate, competes with standard JPA entity listener callbacks:
45+
* {@link jakarta.persistence.PostLoad}, {@link jakarta.persistence.PrePersist},
46+
* {@link jakarta.persistence.PreUpdate}, and {@link jakarta.persistence.PreRemove}.
47+
* However, JPA callbacks do not provide the ability to access the previous
48+
* value of an updated property in a {@code @PreUpdate} callback, and do not
49+
* provide a well-defined way to intercept changes to collections.
4750
*
4851
* @see SessionBuilder#interceptor(Interceptor)
4952
* @see SharedSessionBuilder#interceptor()

hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@
7777
* annotated classes}, or {@linkplain #addFile XML mapping documents}.
7878
* </ul>
7979
* <p>
80-
* Note that XML mappings may be expressed using the JPA {@code orm.xml}
81-
* format, or in Hibernate's legacy {@code .hbm.xml} format.
80+
* Note that XML mappings may be expressed using either:
81+
* <ul>
82+
* <li>the JPA-standard {@code orm.xml} format, or
83+
* <li>the legacy {@code .hbm.xml} format, which is considered deprecated.
84+
* </ul>
8285
* <p>
8386
* Configuration properties are enumerated by {@link AvailableSettings}.
8487
* <p>

0 commit comments

Comments
 (0)