Hi Toby,

I've just found that the lazy loading is not the default option, but you could 
set "proxy" annotation property for @Bean or @Collection in the bean.
For example, 

    @Bean(jcrName="custom:content", proxy=true)
    private Content content;

When you invoke getter method for the above property, it will retrieve the 
target object if it hasn't be retrieved yet.
Also, you probably need to bring another dependency on asm:asm:1.5.3:jar 
because jackrabbit ocm seems using cglib and transitively asm 1.5.3.

Regards,

Woonsan



----- Original Message ----
> From: Toby O'Rourke <[email protected]>
> To: "[email protected]" <[email protected]>
> Sent: Fri, March 12, 2010 8:36:30 PM
> Subject: OCM Lazy Loading?
> 
> Hi,

I see a bunch of classes in 
> 
org.apache.jackrabbit.ocm.manager.objectconverter.impl which suggest 
> 
that OCM supports Lazy Loading. Is this default behaviour or something I 
> 
need to configure? can some one give me a pointer where I should be 
> looking?

Thanks,

Toby.


      

Reply via email to