mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 23:09:13 +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
|
* {@code instanceof} and {@link Object#getClass()} work as
|
||||||
* normal, since the concrete type of the entity instance is
|
* normal, since the concrete type of the entity instance is
|
||||||
* known immediately. This is usually bad tradeoff.
|
* 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
|
* @author Emmanuel Bernard
|
||||||
*/
|
*/
|
||||||
|
@ -52,6 +52,10 @@ public enum LazyToOneOption {
|
|||||||
* </ul>
|
* </ul>
|
||||||
* Bytecode enhancement is required. If the class is not
|
* Bytecode enhancement is required. If the class is not
|
||||||
* enhanced, this option is equivalent to {@link #PROXY}.
|
* 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
|
NO_PROXY
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user