Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

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.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
HelP:Spring Module Cache caching association object? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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(){
    public Customer getCustomer();


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

    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.