Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 5.9
-
Fix Version/s: None
-
Component/s: Engine
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Please consider overriding "hashCode" and "equals" in the engine's entities (such as TaskEntity or ExecutionEntity). This would make it more convenient and secure to use the entities in hash-based collections or maps.
Example in attached JUnit test: Joining the list of tasks resulting from two separate queries in a HashSet in order to avoid duplicate entries.
that would be quite a lot of work to compare the whole substructures of entities. and while i agree that would be convenient now and then, i don't think it's necessary nor worth the effort.