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 with spring bootstarterdatajpa module included. Database access is fully configured.
The database contains table "persondata" with columns:
id bigint
firstname varchar
lastname varchar
All columns are not nullable.
Tasks
Use annotations to configure Person class as hibernate entity that corresponds to table "persondata"
Implement method getFullName in Person class, so that it would return full name for given entity. For example: "John Smith" when firstnameJohn, lastnameSmith
Register PersonService class as spring bean
Implement method findAll in PersonService. It should return all entities from database
Requirements
hanges saved
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
