Details
-
Type:
Bug
-
Status:
In Progress
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 1.2-M2
-
Fix Version/s: 1.2-M3
-
Component/s: Persistence
-
Labels:None
Description
I think it should be lazy by default, and be able to set to eager by using custom ORM mappings.
As discussed on twitter you already mentioned the bug to be on line 2061 of http://github.com/grails/grails/blob/7c7ac4efd2f3e1796e3b285edb0ff38aeeccc1d7/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
Issue Links
| This issue is duplicated by: | ||||
| GRAILS-6551 | hasOne results in eager fetching of association |
|
|
|
Seems lazy one-to-one associations are not possible in Hibernate. See https://www.hibernate.org/162.html
It is only possible to make a many-to-one lazy