Chinaunix首页 | 论坛 | 博客
  • 博客访问: 401074
  • 博文数量: 126
  • 博客积分: 3002
  • 博客等级: 少校
  • 技术积分: 1210
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-30 15:04
文章分类

全部博文(126)

文章存档

2012年(14)

2011年(63)

2010年(36)

2009年(13)

分类: Java

2012-08-17 18:10:43

DAO
   
        
    

--------------------------------------------
Service


       
       
   

   
             class="org.springframework.orm.hibernate3.HibernateTransactionManager">
       
   

            class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
       
           
                orderService
           

       

       
           
                transactionInterceptor
           

       

   
            class="org.springframework.transaction.interceptor.TransactionInterceptor">
       
       
           
                PROPAGATION_REQUIRED,-Exception
                PROPAGATION_REQUIRED,-Exception
           

       

   

-----------------------------------------------------
JDBC

            class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
       
           
                classpath:jdbc.properties
                classpath:config.properties
           

       

   


   
            destroy-method="close">
       
       
       
       
   


   
            class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
       
       
       
           
                hibernate.dialect=${hibernate.dialect}
                hibernate.query.substitutions=true 'Y', false 'N'
                hibernate.cache.use_second_level_cache=true
                hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
                hibernate.show_sql=false
                hibernate.cache.use_query=true
                hibernate.statement_cache.size=25
                hibernate.jdbc.fetch_size=50
                hibernate.jdbc.batch_size=25
                javax.persistence.validation.mode=none
                hibernate.connection.release_mode=after_statement
                hibernate.auto_commit = false
           

           
           
       

   

阅读(1231) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~