官术网_书友最值得收藏!

Using JPA to Create and Access a Database

This chapter covers how to use Java Persistent API (JPA) with Spring Boot and how to define a database by using entity classes. In the first phase, we will be using the H2 in-memory database for development and demonstration purposes. H2 is an in-memory SQL database that is really good for fast development or demonstration purposes. In the second phase, we will move from H2 to use MariaDB. This chapter also describes the creation of CRUD repositories and a one-to-many connection between database tables.

In this chapter, we will cover the following topics:

  • Basics of Object-Relational Mapping (ORM), JPA, and Hibernate
  • Creating the entity classes
  • Creating CRUD repositories 
  • Relationships between tables 
  • Setting up the MariaDB database
主站蜘蛛池模板: 翼城县| 崇文区| 莱州市| 成安县| 双辽市| 玛纳斯县| 台江县| 平谷区| 绍兴县| 清新县| 资中县| 从江县| 贵定县| 灯塔市| 惠东县| 仲巴县| 桂东县| 奉贤区| 金平| 兴文县| 曲阜市| 溧阳市| 酉阳| 东港市| 沾化县| 托克托县| 伊川县| 云霄县| 建昌县| 沂水县| 吴旗县| 太谷县| 兴化市| 东山县| 镇江市| 怀宁县| 阿荣旗| 新余市| 乃东县| 浪卡子县| 清河县|