[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6713) Lazy by context

Martin Krüger (JIRA) noreply at atlassian.com
Wed Oct 5 14:34:19 EDT 2011


Lazy by context
---------------

                 Key: HHH-6713
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6713
             Project: Hibernate Core
          Issue Type: New Feature
          Components: caching (L2)
            Reporter: Martin Krüger


Sometimes I want to load references lazy and sometimes not. For example, if I read some object for a table, i need less information, if I look at the details.

A workaround for this, is to implement lightweight entities, or fetch all referenced entities by calling a.getAllB().size() if attribute b were lazy.

Would it be possible to steer lazy during runtime, rather then design time? 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list