Giter Site home page Giter Site logo

spring-db-app-development's Introduction

Работа с РСУБД в Spring

Recordings

Prerequisites

  • JDK11
  • IntelliJ IDEA Ultimate
  • Lombok plugin + Enable annotation processing
  • JPA Buddy plugin
  • Docker
  • Forked this repo
  • Forked agile-practices-application repo

Agenda 24

Spring frameworks recap 3

  • Why Spring Core?
  • Why Spring MVC?
  • Why Spring Boot?
  • How to configure the app?
  • DataSource configuration
  • Connection pool configuration

Ключевые концепции РСУБД и SQL recap 2

  • Подключение к БД из IDEA
  • Драйвер
  • JDBC URL и параметры подключения
  • База, каталог, схема
  • Объекты схемы
  • DDL vs DML

JDBC API 3

JDBC в Spring 3

  • DB schema versioning with Spring Boot module
  • TestContainers library with external DB
  • CRUD @Repository and its common API
  • @Autowired of dependent beans
  • Key components
  • DataSource
  • JdbcTemplate
  • RowMapper
  • SimpleJdbcInsert
  • NamedParameterJdbcTemplate
  • org.springframework.jdbc.object package

JPA в Spring 6

  • Управление авто-конфигурацией ORM в конфиге Spring Boot

  • Архитектура ORM: JPA & JPA Provider

  • Entity vs ValueObject/DTO

  • Persistence Context

  • Attaching and Detaching entities

  • JPA API

  • EntityManager

  • Entity

  • OQL-запросы

  • Criteria API

  • Логическая конфигурация Entity

  • первичный ключ

  • ленивость полей

  • связи и ленивость

  • опасность возврата detached сущностей с lazy-связями

  • наследование

  • Физическая конфигурация Entity

  • Таблицы

  • Поля

  • Индексы

  • Validation API

  • Когда активируется валидация (спойлер: не единожды)

  • Кто валидирует

  • Как описать правила валидации

  • Caching API

  • ORM кешируют объекты по своей архитектуре

  • ORM так же могут кешировать Persistence Contexts с итоговыми тремя уровнями кеширования

JPA-транзакции 2

Spring Data JPA 3

  • Задачи автогенерации
  • Декларация Spring Data Repository
  • Что наследуем
  • Как можем задать свои методы на соглашениях
  • Как можем задать свои методы на OQL-запросе
  • Генерация контроллеров

spring-db-app-development's People

Contributors

eugene-krivosheyev avatar

Stargazers

 avatar

Watchers

 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.