cis498-g4 / GuestBook

Guest book and feedback system for events
1 stars 1 forks source link

Pass objects instead of IDs to DataAccess write methods #2

Closed mikemolenda closed 7 years ago

mikemolenda commented 7 years ago

For any write methods in *DataAccess classes that take only integer IDs as arguments, rewrite so they take objects of the type they are attempting to write as arguments. IDs can still be passed in by creating an object that has only the ID attribute set.

mikemolenda commented 7 years ago

This allows error handling for nullPointer exceptions, etc.