Tobias e99db44ddf Add test for soft deleted children
When a child is referenced in the query, Ebean should make sure
that the child (or any of the objects connecting it in the query)
is deleted.

Ie. if a query requires a child to have a certain value, it should
filter out those children that are soft deleted. It should also perform
the deleted check on all objects leading up to that child.

E.g. assuming that all objects are soft deletable, the following where():

DB.find(Alpha.class).where()
.eq("alpha.beta.gamma.name", "bar")

should generate a query with
"t0.deleted = false AND t1.deleted = false AND t2.deleted = false AND t2.name = 'bar'"
2020-07-07 12:33:43 +02:00
2019-06-19 23:49:00 +12:00
2020-07-07 12:33:43 +02:00
2018-10-24 21:38:17 +13:00
2019-10-14 09:21:41 +13:00

Build Status Maven Central : ebean

Sponsors

Need help?

Post questions or issues to the Ebean google group - https://groups.google.com/forum/#!forum/ebean

Documentation

Goto https://ebean.io/docs/

Maven central - ebean

Maven central - all related projects

Other versions

  • Maven Central : ebean-agent - ebean-agent
  • Maven Central : ebean-maven-plugin - ebean-maven-plugin
Languages
Java 94%
PLpgSQL 2.7%
TSQL 2.5%
SQLPL 0.6%
Kotlin 0.1%