`
starfeng
  • 浏览: 11918 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

hibernate persistence configuration

阅读更多
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="xxx" transaction-type="RESOURCE_LOCAL">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <mapping-file>META-INF/orm-oracle.xml</mapping-file>
       
        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
            <property name="hibernate.show_sql" value="false" />
            <property name="hibernate.jdbc.batch_size" value="100" />
           
            <property name="hibernate.cache.use_query_cache" value="true" />
            <property name="hibernate.cache.use_second_level_cache" value="true" />
            <property name="hibernate.cache.provider_class" value="net.sf.ehcache.hibernate.EhCacheProvider"/>
            <property name="net.sf.ehcache.configurationResourceName" value="/ehcache.xml" />
        </properties>
    </persistence-unit>
</persistence>
 
分享到:
评论

相关推荐

    Hibernate_A Developers Notebook

    Hibernate: A Developer's Notebook shows you how to use Hibernate to automate persistence: you write natural Java objects and some simple configuration files, and Hibernate automates all the ...

    hibernate.properties

    # Hibernate, Relational Persistence for Idiomatic Java # # License: GNU Lesser General Public License (LGPL), version 2.1 or later. # See the lgpl.txt file in the root directory or ...

    Hibernate Reference Documentation3.1

    1.2.3. Hibernate configuration 1.2.4. Building with Ant 1.2.5. Startup and helpers 1.2.6. Loading and storing objects 1.3. Part 2 - Mapping associations 1.3.1. Mapping the Person class 1.3.2. A ...

    A Developer‘s Notebook

    A Developer’s Notebook shows you how to use Hibernate to automate persistence: you write natural Java objects and some simple configuration files, and Hibernate automates all the interaction between ...

    Getting Started with JPA

    The Java Persistence API (JPA) is the Java standard for mapping Java objects to a relational ...using an entity manager, creating and executing queries, and configuration of the persistence.xml file.

    hibernate3.6 文档(pdf 格式)

    1.1.4. Hibernate configuration ............................................................................. 7 1.1.5. Building with Maven .................................................................

    Manning.Spring.in.Action.4th.Edition.2014.11.epub

    2.1. Exploring Spring’s configuration options 2.2. Automatically wiring beans 2.2.1. Creating discoverable beans 2.2.2. Naming a component-scanned bean 2.2.3. Setting a base package for component ...

    spring-boot-reference.pdf

    16.2. Disabling Specific Auto-configuration Classes 17. Spring Beans and Dependency Injection 18. Using the @SpringBootApplication Annotation 19. Running Your Application 19.1. Running from an IDE ...

    The Definitive Guide to NetBeans Platform

    ■CHAPTER 13 Persistence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 ■CHAPTER 14 Web Services . . . . . . . . . . . . . . . . . . . . . . . . ...

    spring-framework-reference4.1.4

    Configuration metadata ..................................................................................... 23 Instantiating a container .................................................................

    spring-framework-reference-4.1.2

    Configuration metadata ..................................................................................... 23 Instantiating a container .................................................................

    springboot参考指南

    定位auto-configuration候选者 iii. 36.3. Condition注解 i. 36.3.1. Class条件 ii. 36.3.2. Bean条件 iii. 36.3.3. Property条件 iv. 36.3.4. Resource条件 v. 36.3.5. Web Application条件 vi. 36.3.6. SpEL...

    前端-后端java的Util类的工具类

    │ │ configuration.html │ │ cpd.html │ │ cpd.xml │ │ dependencies.html │ │ dependency-info.html │ │ distribution-management.html │ │ dynamic-sql.html │ │ findbugs.html │ │ getting-...

Global site tag (gtag.js) - Google Analytics