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

Evaluate if entities should really be Comparable #2

Open
vitorsouza opened this issue Apr 17, 2016 · 0 comments
Open

Evaluate if entities should really be Comparable #2

vitorsouza opened this issue Apr 17, 2016 · 0 comments

Comments

@vitorsouza
Copy link
Contributor

vitorsouza commented Apr 17, 2016

If I recall correctly, the CRUD mini-framework requires that for listing entity instances that are put in the trash can for deletion. Is this really necessary?

Suggestion: when creating the trash can, ask if selectedEntity instanceof Comparable. If true, use a SortedSet, otherwise use a regular Set.

Also, check the data table components used in the listing and in the trash. It might be interesting to use a data table that automatically sorts the entities...

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