mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 14:59:12 +00:00
document limitation of LazyToOne(NO_PROXY) to non-polymorphic associations
we can roll back this commit if/when we fix the limitation, as proposed: https://github.com/hibernate/hibernate-orm/discussions/5591
This commit is contained in:
parent
2e02b9a74f
commit
a72c8744a8
@ -49,6 +49,10 @@
|
||||
* {@code instanceof} and {@link Object#getClass()} work as
|
||||
* normal, since the concrete type of the entity instance is
|
||||
* known immediately. This is usually bad tradeoff.
|
||||
* <p>
|
||||
* <strong>Currently, Hibernate does not support
|
||||
* {@code LazyToOne(NO_PROXY)} for polymorphic associations,
|
||||
* and instead falls back to using a proxy!</strong>
|
||||
*
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
|
@ -52,6 +52,10 @@ public enum LazyToOneOption {
|
||||
* </ul>
|
||||
* Bytecode enhancement is required. If the class is not
|
||||
* enhanced, this option is equivalent to {@link #PROXY}.
|
||||
* <p>
|
||||
* <strong>Currently, Hibernate does not support this setting
|
||||
* for polymorphic associations, and instead falls back to
|
||||
* {@link #PROXY}!</strong>
|
||||
*/
|
||||
NO_PROXY
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user