[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4925) one-to-one constrained=false: can be loaded on demand? can be proxied?

Adam Wozniak (JIRA) noreply at atlassian.com
Tue Feb 16 19:40:47 EST 2010


one-to-one constrained=false: can be loaded on demand? can be proxied?
----------------------------------------------------------------------

                 Key: HHH-4925
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4925
             Project: Hibernate Core
          Issue Type: New Feature
          Components: core
    Affects Versions: 3.3.1
         Environment: n/a
            Reporter: Adam Wozniak


Hi

In file org.hibernate.cfg.HbmBinder I can see the following comment:
				else if ( "one-to-one".equals( node.getName() ) ) {
					//NOTE SPECIAL CASE:
					// one-to-one constrained=false cannot be proxied,
					// so default to join and non-lazy
					lazy = ( (OneToOne) model ).isConstrained();
					fetchStyle = lazy ? FetchMode.DEFAULT : FetchMode.JOIN;
				}
				else {


Is this comment is still valid?
In other words: is it possible to "load on demand" (lazy loading) of a property mapped as:
  one-to-one constrained=false
?

Regards, Adam Woźniak

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list