Code Monkey home page Code Monkey logo

project-hibernate-final's Introduction

Study project with Hibernate and Docker.

Overview

Simple application to setup relation with JPA/HQL and DB on select-query without problem N+1.

Also testing time on queries between MySQL and Redis.

MySQL and Redis start via Docker container.

In DB using tables Country, City and Languages.

Technology stack:

  • Java 18
  • Maven 4.0.0
  • Hibernate 5.6.15.Final
  • MySQL-connector 8.0.33
  • p6spy 3.9.1
  • Junit 5.9.2
  • Log4j 2.20.0

Quick start

To start the application need:

  1. download project
git clone https://github.com/MaletyPerun/project-hibernate-final.git
  1. start docker container via console in package of project ".../project-hibernate-final"
docker-compose up

โ€” download and start containers on images of MySQL and Redis.

  1. make dump DB from package: ..src/main/resourses/dump-hibernate-final.sql

  2. build application via console in package of project "../project-hibernate-final"

mvn clean install

After that Maven builds the application with test a time between queries of MySQL and Redis.

Using: SessionFactory, JPA-annotation, HQL, Logging, dockerfile, docker-compose

project-hibernate-final's People

Contributors

maletyperun avatar

Watchers

 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.