java-beans homework
Instructor Hamit Pena Sierra Assignment I
- Create and configure a Maven application to use Spring
- On it, write 2 classes with the following structure: a. Employee i. firstName ii. lastName iii. salary iv. email v. department b. Department i. id ii. name iii. City
- Define 3 beans from the class Employee, setting them to receive autowired properties by type. Set different values for the properties of each
- Define 1 bean from the class Department, set it to have a Singleton scope
- Write a class with a main method, get the 3 employee beans and print out the values of their properties, including those from the related department bean