Announcement Announcement Module
Collapse
No announcement yet.
Integrate hibernate cache in spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integrate hibernate cache in spring

    i am using hibernate version 2.1.6. In hibernate.cfg.xml file i have specified <class-cache> mappings. eg -
    <class-cache class = "test.AppType" usage ="transactional"/>

    Now i am using hibernate with spring. Please tell me how do i specify these cache mappings in applicationContext.xml

  • #2
    Take a look at LocalSessionFactoryBean.setEntityCacheStrategies() .

    Comment


    • #3
      This method exists in org.springframework.orm.hibernate3.LocalSessionFac toryBean.

      But i am using hibernate 2.1.6; hence class org.springframework.orm.hibernate.LocalSessionFact oryBean.

      Comment


      • #4
        Ah, yes, sorry... I guess you should file an enchancement request for it then.

        Comment


        • #5
          Please make an issue on JIRA.

          Comment

          Working...
          X