Gavin King
Gavin King
But the main reason we don't have it is it's typically such a crappy and inefficient way to interact with the database.
Probably the people who want this should be using `upsert()` or something else which doesn't suck.
So, to be clear (I was posting from my phone). The people posting above are giving what looks to me like terrible advice on how to implement an upsert on...
@alexander-dammeier > I use "exists" to prove if an id really refers to an existing aggregate when i only hold the id in another aggregate. It is a business rule...
@markus-lehr-dedalus In your use case, what are the transactional semantics of that?
Another comment: in the case where `exists()` takes an id, I'm not clear on why a count query (for example, `getResultCount()` in Hibernate) is no good. I would have expected...
And then you retry later?
This is a good idea.
This could be done along with #167.
Not only the javadocs, also the asciidoc documentation is doing its own thing.