areDuplicates

abstract fun areDuplicates(e1: E, e2: E): Boolean(source)

Check if two entities are duplicates, this should reflect your unique constraint on the DB

Return

true if they are duplicates, false otherwise

Parameters

e1

First entity to check

e2

Second entity to check