spartan7777 / Individual-Enterprise-Project

Enterprise Java Individual Project
0 stars 0 forks source link

Project Submission for Checkpoint 2 #11

Open spartan7777 opened 3 years ago

spartan7777 commented 3 years ago

Ms. Waite, I have added a lot of materials, that seemed to cause me a some issues that I hopefully can resolve with some simple questions. I am working on getting more into this, but I have fleshed out my project in IntelliJ with items placed as needed. Database is there, along with proper package folders, and Java Classes.

pawaitemadisoncollege commented 3 years ago

@spartan7777 It looks like you have a good start here.

I realize this is a work in progress, and you likely have a plan in mind, but just in case, my recommended next steps:

  1. Pick one entity (user?) to unit test with hibernate/dao/database.
  2. Consider commenting out all other classes that are in progress to minimize errors and to allow you to focus on a single task.
  3. Add the hibernate dependencies into the pom.xml.
  4. Import the appropriate hibernate packages/classes into the entity you choose in 1 above. Fix all compiler errors.
  5. Unit test a single dao method. I suggest getAll or getById.
  6. Once a single dao method is passing, test the next one until full CRUD is covered.
  7. Repeat with the next entity (Role).
  8. Update Role and User to handle the relationship between them
  9. Make sure existing unit tests pass
  10. Add a single unit test to test a User with a Role
  11. Once that single test is working, repeat for more thorough relationship testing, for example - if you delete a user, what should happen to the role? Write a test to make sure this happens.
  12. Replace the entity-specific daos with the generic dao; update unit tests to use the generic dao, verify all tests are passing
  13. Add the Concept entity, and related unit tests.