- Spring Boot 2.0 Cookbook(Second Edition)
- Alex Antonov
- 163字
- 2021-06-24 19:24:38
Setting up a data repository service
Connecting to a database and then executing good old SQL, though simplistic and straightforward, is not the most convenient way to operate on the data, map it in a set of domain objects, and manipulate the relational content. This is why multiple frameworks emerged to aid you with mapping the data from tables to objects, better known as object-relational mapping (ORM). The most notable example of such a framework is Hibernate.
In the previous example, we covered how to set up a connection to a database and configure the settings for the username and password, and we also discussed which driver to use, and so on. In this recipe, we will enhance our application by adding a few entity objects that define the structure of the data in the database and a CrudRepository interface to access the data.
As our application is a book-tracking catalogue, the obvious domain objects would be Book, Author, Reviewers, and Publisher.
- Building Computer Vision Projects with OpenCV 4 and C++
- Lean Mobile App Development
- Power BI商業數據分析完全自學教程
- 信息學競賽寶典:數據結構基礎
- gnuplot Cookbook
- 企業級容器云架構開發指南
- 探索新型智庫發展之路:藍迪國際智庫報告·2015(上冊)
- Python數據分析從小白到專家
- 企業主數據管理實務
- Deep Learning with R for Beginners
- SQL Server 2012 數據庫教程(第3版)
- 精通Neo4j
- Tableau商業分析從新手到高手(視頻版)
- 實用數據結構基礎(第四版)
- Python數據可視化之matplotlib精進