Currently the equals() and hashCode() methods are not implemented - leading to failing unit tests for resources that need to use these when these are auto-generated by IntelliJ.
I would suggest we implement these like this:
Two ResourceLinkage instances are equal if their type + id are equal.
Two HasOne instances are equal if their ResourceLinkages are equal (regardless of the actual instance provided by get())
Two HasMany instances are equal if all of their ResourceLinkages are equal (regardless of the actual instance provided by get())
Currently the equals() and hashCode() methods are not implemented - leading to failing unit tests for resources that need to use these when these are auto-generated by IntelliJ.
I would suggest we implement these like this:
I already started working on an implementation.