spring+hibernate如果配置



xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">



class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
value="oracle.jdbc.driver.OracleDriver" />
value="jdbc:oracle:thin:@192.168.5.8:1521:orcl1" />






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





/org/neptune/session/db/Session.hbm.xml






hibernate.dialect=org.hibernate.dialect.Oracle10gDialect

hibernate.show_sql=false
hibernate.format_sql=false

hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider





class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener" />






class="org.springframework.orm.hibernate3.HibernateTransactionManager"
p:sessionFactory-ref="sessionFactory" />
















expression="execution(* org.neptune.session.DefaultSessionManager.*(..))" />

















expression="execution(* *..*Logic.*(..))" />





class="org.neptune.session.DefaultSessionManager">

class="org.neptune.session.db.SessionDaoHibernateImpl">






你可能感兴趣的:(hibernate,Hibernate,Spring,AOP,SQL,Cache)