Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
HelP:Spring Module Cache caching association object? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HelP:Spring Module Cache caching association object?

    Hi Everybody,

    I am using Spring Module Cache and it's working well for the result returned from the method.

    For example

    Class Customer {

    String firstname;
    String lastnmae;
    int age;
    Set<Address> address;

    }
    Class CustomerDAO(){
    @Cacheblae(modelId="testCache")
    public Customer getCustomer();

    }

    Class testCustomer(){
    Customer customer = customerDao.getCusotmer();
    customer.getAddress();

    }
    The customer object will be cached correctly.
    The address set weren't cached.

    The hibernate cache can cache association.
    Can I use both Spring module and hiberante cache at the same time to meet my goals?

    Or I have to use hibernat cache only?

    Thanks very much for any inputs.
Working...
X