The implementation of equals in `BaseEntity` is such that an entity is not equals to its proxy: https://github.com/AppJars/commons-backend/blob/ca5a44fea72cec4a41f3b5c240bd8da590a43b0c/commons-model/src/main/java/com/appjars/saturn/model/Identifiables.java#L66-L70 See https://stackoverflow.com/q/11013138/1297272