How can I load a property lazily in JDO (on Google App Engine)?

Posted by luciano on Stack Overflow See other posts from Stack Overflow or by luciano
Published on 2010-02-09T13:11:01Z Indexed on 2010/04/26 9:33 UTC
Read the original article Hit count: 264

I have this code in one of my @PersistenceCapable classes:

@Persistent
private Blob data;

The Blob can be quite big, so I'd like to load it lazily since most of the times I don't need it. How can I annotate that property to avoid immediate loading? I could create another class that contains the Blob alone and then use a lazy one-to-one, but I'd like to solve this with annotations.

© Stack Overflow or respective owner

Related posts about jdo

Related posts about google-app-engine