File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 39
39
* Whichever approach is used, the interceptor must be serializable for the
40
40
* {@code Session} to be serializable. This means that {@code SessionFactory}-scoped
41
41
* 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.
47
50
*
48
51
* @see SessionBuilder#interceptor(Interceptor)
49
52
* @see SharedSessionBuilder#interceptor()
Original file line number Diff line number Diff line change 77
77
* annotated classes}, or {@linkplain #addFile XML mapping documents}.
78
78
* </ul>
79
79
* <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>
82
85
* <p>
83
86
* Configuration properties are enumerated by {@link AvailableSettings}.
84
87
* <p>
You can’t perform that action at this time.
0 commit comments