[
http://jira.jboss.com/jira/browse/JBCACHE-13?page=all ]
Ben Wang resolved JBCACHE-13.
-----------------------------
Resolution: Done
Yes, the current "flat-space" mapping would mean when a POJO is passivated, then
a user do:
pojo.getName();
only the pojo node will be loaded but not the other composite fields (e.g., Address). And
if a user do:
pojo.getAddress().getCity();
only that composite field is loaded.
Lazy loading: PojoCache and CacheLoader
---------------------------------------
Key: JBCACHE-13
URL:
http://jira.jboss.com/jira/browse/JBCACHE-13
Project: JBoss Cache
Issue Type: Task
Affects Versions: 1.2.4SP1
Reporter: Bela Ban
Assigned To: Ben Wang
Fix For: 2.0.0.GA
Original Estimate: 3 weeks
Remaining Estimate: 3 weeks
Idea is to have a configurable option that can be set either to eager or lazy loading.
This can apply to whether it is with or without cache loader as well. For example, we may
as well do the initial mapping lazily.
Example:
Person p = cache.getObject("/person");
p.getName(); only primitive fields get loaded (not Address, e.g.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira