/java-beans

java-beans homework

Primary LanguageJava

java-beans

java-beans homework

Instructor Hamit Pena Sierra Assignment I

  1. Create and configure a Maven application to use Spring
  2. 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
  3. Define 3 beans from the class Employee, setting them to receive autowired properties by type. Set different values for the properties of each
  4. Define 1 bean from the class Department, set it to have a Singleton scope
  5. 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