Results 1 to 5 of 5

Thread: Integrate hibernate cache in spring

  1. #1
    Join Date
    Jul 2005
    Posts
    26

    Default 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. #2
    Join Date
    Sep 2004
    Posts
    1,086

    Default

    Take a look at LocalSessionFactoryBean.setEntityCacheStrategies() .

  3. #3
    Join Date
    Jul 2005
    Posts
    26

    Default

    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.

  4. #4
    Join Date
    Sep 2004
    Posts
    1,086

    Default

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

  5. #5
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Please make an issue on JIRA.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Replies: 2
    Last Post: Jul 31st, 2005, 11:05 PM
  2. Spring + Hibernate ORA-00936: missing expression
    By Hugh_la_Main in forum Data
    Replies: 1
    Last Post: Jun 28th, 2005, 08:48 AM
  3. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  4. Replies: 5
    Last Post: Dec 16th, 2004, 05:06 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •