eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Other
229 stars 72 forks source link

[BUG] ArangoRepository save method interally uses updateDocument instead of replaceDocument #455

Closed m4ttek closed 9 months ago

m4ttek commented 10 months ago

Which JNoSQL project the issue refers to?

JNoSQL Databases

Bug description

Once a document is saved in collection, there is no possiblity to nullify any given field, as it uses updateDocument method internally, instead of replaceDocument.

Unfortunately, I have to delete such record first, to update it, which is not a satisfactory solution ;)

And, I believe there should be dirty checking of values in any entity, but replaceDocument will also work.

JNoSQL Version

1.0.2

Steps To Reproduce

  1. Save any given document with example values
  2. Try to update it with some nullified fields.

Expected Results

Save method should use replaceDocumento, not updateDocument from arango driver

Code example, screenshot, or link to a repository

No response

otaviojava commented 10 months ago

@m4ttek hey, thank you for the report. We are working on it.

otaviojava commented 9 months ago

We've released a new version with this fix.