Question: You are given a spring boot application ( version 2 . 0 . 5 ) with spring boot - starter - data - jpa module

You are given a spring boot application (version 2.0.5) with spring boot-starter-data-jpa module included. Database access is fully configured.
The database contains table "person_data" with columns:
id (bigint)
first_name (varchar)
last_name (varchar)
All columns are not nullable.
Tasks
Use annotations to configure Person class as hibernate entity that corresponds to table "person_data"
Implement method getFullName in Person class, so that it would return full name for given entity. For example: "John Smith" (when first_name=John, last_name=Smith)
Register PersonService class as spring bean
Implement method findAll in PersonService. It should return all entities from database
Requirements
hanges saved
 You are given a spring boot application (version 2.0.5) with spring

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!