Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement primary key (id) for Person class #58

Open
yunpengn opened this issue Oct 11, 2017 · 0 comments
Open

Implement primary key (id) for Person class #58

yunpengn opened this issue Oct 11, 2017 · 0 comments

Comments

@yunpengn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant