- 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.
- 大規模數據分析和建模:基于Spark與R
- 達夢數據庫編程指南
- Mastering Ninject for Dependency Injection
- 數據之巔:數據的本質與未來
- Oracle高性能自動化運維
- 軟件成本度量國家標準實施指南:理論、方法與實踐
- Ceph源碼分析
- 從0到1:JavaScript 快速上手
- PostgreSQL指南:內幕探索
- Web Services Testing with soapUI
- Expert Python Programming(Third Edition)
- 數據賦能
- 企業大數據處理:Spark、Druid、Flume與Kafka應用實踐
- 數據指標體系:構建方法與應用實踐
- 離線和實時大數據開發實戰