You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we are using the method isSameStateAs to implement the equal method of Person class.
Manually checking the value of all attributes is a very bad way to identify a data item.
We should learn from modern framework (like Ruby on Rails), by default add an id column as primary key for all tables.
The text was updated successfully, but these errors were encountered:
Currently, we are using the method
isSameStateAs
to implement theequal
method ofPerson
class.Manually checking the value of all attributes is a very bad way to identify a data item.
We should learn from modern framework (like Ruby on Rails), by default add an
id
column as primary key for all tables.The text was updated successfully, but these errors were encountered: