Open
Description
Mark Bigler opened DATAMONGO-1386 and commented
To determine whether an entity should be treated as new, the SimpleMongoRepository.save(S entity)
uses isNew(entity)
from MongoEntityInformation.
In case the ID of the entity to save is assigned manually this will never return true.
Is there any reason to not have an implementation of isNew(...)
in MappingMongoEntityInformation
or even in PersistentEntityInformation
that includes the version property if available? (same behaviour as in MappingContextIsNewStrategyFactory.doGetIsNewStrategy()
)
No further details from DATAMONGO-1386