Introducing Spring Framework 6 by Felipe Gutierrez & Joseph B. Ottinger

Introducing Spring Framework 6 by Felipe Gutierrez & Joseph B. Ottinger

Author:Felipe Gutierrez & Joseph B. Ottinger
Language: eng
Format: epub
ISBN: 9781484286371
Publisher: Apress


dependencies {

implementation
"org.springframework.boot:spring-boot-starter-data-jpa"

implementation
"org.springframework.boot:spring-boot-starter-test"

testImplementation
"org.testng:testng:$testNgVersion"

implementation
"com.h2database:h2:2.1.214"

}

Listing 7-1chapter07/build.gradle

Next, let’s take a look at the data model – the DocumentType and Document classes, which will be very (very) similar to the classes we saw in Chapter 6. The biggest difference is in Document, because we’re adding JPA mapping annotations to the class; we have to define the entity and its primary key, at the very least. We could do so with XML configuration files for Hibernate or JPA, but the simplest and most common approach is to use annotations as we’ve done here. The only “interesting” aspect to the mapping is for the type field, which we’re mapping as a String to match our data model from Chapter 6.package c07;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Developing Robust Date and Time Oriented Applications in Oracle Cloud by Michal Kvet(2977)
Serverless ETL and Analytics with AWS Glue by Vishal Pathak Subramanya Vajiraya Noritaka Sekiyama Tomohiro Tanaka Albert Quiroga Ishan Gaur(2647)
Practical Guide to Azure Cognitive Services by Chris Seferlis & Christopher Nellis & Andy Roberts(2057)
Unity Artificial Intelligence Programming - Fifth Edition by Dr. Davide Aversa(1764)
Open Source Projects - Beyond Code by John Mertic(1702)
The AI Product Manager's Handbook by Irene Bratsis(1694)
Graph Data Modeling in Python by Gary Hutson and Matt Jackson(1665)
Cloud Auditing Best Practices by Shinesa Cambric & Michael Ratemo(1297)
Aligning Security Operations with the MITRE ATT&CK Framework by Rebecca Blair(1289)
Graph Data Processing with Cypher by Ravindranatha Anthapu(1094)
Data Literacy in Practice by Angelika Klidas Kevin Hanegan(1087)
Applied Machine Learning and High-Performance Computing on AWS by Mani Khanuja | Farooq Sabir | Shreyas Subramanian | Trenton Potgieter(1085)
Implementing Multifactor Authentication: Protect your applications from cyberattacks with the help of MFA by Marco Fanti(933)
Fuzzing Against the Machine: Automate vulnerability research with emulated IoT devices on QEMU by Antonio Nappa Eduardo Blazquez(928)
The AI Product Manager's Handbook: Develop a product that takes advantage of machine learning to solve AI problems by Irene Bratsis(813)
The SQL Workshop by Frank Solomon(806)
Data Literacy in Practice - A complete guide to data literacy and making smarter decisions with data through intelligent actions (2022) by Packt(806)
Graph Data Processing with Cypher by Anthapu Ravindranatha;(752)
Serverless Machine Learning with Amazon Redshift ML: Create, train, and deploy machine learning models using familiar SQL commands by Debu Panda Phil Bates Bhanu Pittampally Sumeet Joshi(703)
Network Automation with Go by Nicolas Leiva & Michael Kashin(590)