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 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()
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments