Code Monkey home page Code Monkey logo

high-performance-java-persistence's Introduction

High-Performance Java Persistence

The High-Performance Java Persistence book code examples.

High-Performance Java Persistence

All examples require at least Java 1.8.

The Unit Tests are run against HSQLDB, so no preliminary set-ups are required.

The Integration Tests require some external configurations:

  • PostgreSQL

    You should install PostgreSQL 9.5 (or later) and the password for the postgres user should be admin

    Now you need to create a high_performance_java_persistence database Open pgAdmin III and executed the following query:

      CREATE EXTENSION postgis;
    
  • Oracle

    You need to download and install Oracle XE

    Set the sys password to admin

    Connect to Oracle using the "sys as sysdba" user and create a new user:

      create user oracle identified by admin default tablespace users;
    
      grant dba to oracle;
    
      alter system set processes=1000 scope=spfile;
    
      alter system set sessions=1000 scope=spfile;
      
      ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
    

    For the Oracle JDBC driver, you have multiple alternatives.

    1. You can follow the steps explained in this article to set up the Oracle Maven Repository.

    2. You can also download the Oracle JDBC Driver (ojdbc6.jar and ojdbc7_g.jar), which is not available in the Maven Central Repository. and install the ojdbc6.jar and ojdbc7_g.jar on your local Maven repository using the following command:

       $ mvn install:install-file -Dfile=ojdbc6.jar -DgroupId=com.oracle.jdbc -DartifactId=ojdbc6 -Dversion=11.2.0.4 -Dpackaging=jar
       $ mvn install:install-file -Dfile=ojdbc7_g.jar -DgroupId=com.oracle.jdbc -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar 
      
  • MySQL

    You should install MySQL 5.6 (or later) and the password for the mysql user should be admin

    Now you need to create a high_performance_java_persistence schema

  • SQL Server

    You should install SQL Server Express Edition with Tools Chose mixed mode authentication and set the sa user password to adm1n

    Open SQL Server Management Studio and create the hibernate_master_class database

    Open SQL Server Configuration Manager -> SQL Server Network Configuration and enable Named Pipes and TCP

    Now you need to create a high_performance_java_persistence database

high-performance-java-persistence's People

Contributors

vladmihalcea avatar hypersistence avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.