Open bryanmk opened 1 year ago
Hi @bryanmk! Wow! Look how much you've learned and been able to resolve this semester! That is awesome news that you already have your api auth set up already - that'll pay off, along with completing the exercise for week 4 in your project. So much good stuff!
Quick note: I did not receive notification of this issue due to a typo in my username @pwaitemadisoncollege vs @pawaitemadisoncollege. If you'd like to give me read permissions on your repository (settings in Github), that will provide you with the autocomplete feature with my username and save you some typing!
[ ] Verifying the entities are saved/updated/inserted correctly can be more thorough by implementing and using equals() on each entity - refer to the video Comparing Hibernate Entities with equals in week 5 for more detail. An example of using that equals method in a unit test would be something like assertTrue(expectedUser.equals(actualUser));
so that you don't have to compare each instance var/column manually like this: https://github.com/bryanmk/IndieProject/blob/961104d98d87afc5dab4e209127e6ce3fcf169df/src/test/java/questie/persistence/UserDAOTest.java#L71
[ ] You'll likely notice, if you haven't already, that writing a Dao for each entity will be very repetitive - watch for the abstract/generic dao to be introduced in the coming week and plan to use it in your project so that you can use a single dao! Note that you will still have unit tests each for each entity(dao) to make sure that annotations and database relationships are set up correctly.
On to week 5 - more practice with Hibernate and one-to-many relationships!
@pwaitemadisoncollege week 4 complete.