Class hierarchy persistance strategies (course "Java Enterprise", it-academy.by, Minsk, starting date 03.03.2022)
Create three classes
- Task - has the following fields
- id
- name
- description
- HomeTask extends Task - has additional fields
- startDate
- endDate @Embedded
- performer (type Person [has two fields first and last name, make them Embeddable]) @Embedded
- accepter (type Person [has two fields first and last name, make them Embeddable])
- WorkTask extends Task - has additional field
- cost
In three git branches, implement 3 inheritance strategies: 1 - Table per class hierarchy 2 - Table per subclass 3 - Table Per Concrete class mapping
Write there some data from the main method. Check through tests on H2, connect checkstyle, jacoco.