Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to head #4

Merged
merged 686 commits into from
Nov 28, 2020
Merged

Conversation

Ryszard-Trojnacki
Copy link
Owner

No description provided.

rbygrave and others added 30 commits June 29, 2020 08:48
…"parent" rather than copy beans (adjustment of #2021)
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'"
Example:
One X can have many Ys. Ys can be soft deleted.

Y1 -> X1 -> Y1

Y1 is soft deleted

When Y1 is loaded, lazy-loading X1 and then lazy-loading the list of Ys associated with X1,
the list should contain Y1. This test asserts that is true.
…hen query has predicates on a ToMany path the associated soft delete predicates are not included)
Example:
One X can have many Ys. Ys can be soft deleted.

Y1 -> X1 -> Y1

Y1 is soft deleted

When Y1 is loaded, lazy-loading X1 and then lazy-loading the list of Ys associated with X1,
the list should contain Y1. This test asserts that is true.
Hmmm, my bad. I merged the branch manually and that didn't remove the PR so I've merged this twice now and hence ended up with a duplicate method. All good, just removing this duplicate method.
rbygrave and others added 29 commits November 19, 2020 09:23
- Move ScalarType, DataBinder, DataReader, ExtraTypeFactory to ebean-core-type module
- Update the ebean-postgis and other modules
Refactor extract ebean-core-type module moving ScalarType and related interfaces to io.ebean.core.type
…reType

- Rename ModifyAwareOwner to ModifyAwareType
- Move to io.ebean (making it properly public)
- Remove the requirement for Serializable
- Simplify to effectively a getter/setter pair (dirty state flag)
- Simplify to reset the dirty state flag via
…tgres - Use NO KEY with FOR UPDATE clauses
- Changes to generally not close BatchedPstmt on executeBatch() and instead closed on commit/rollback
#2089 - Postgres - Use NO KEY with FOR UPDATE clauses with Postgres
Refactor io.ebeaninternal.json.ModifyAwareOwner to io.ebean.ModifyAwareType
Add support for Postgres lock types (no key, share, key share) with FOR UPDATE
Rename PlatformConfig.defaultLockWithKey to PlatformConfig.forUpdateNoKey
…batch_flush

2110 - Fix and test for executeBatch() on SqlUpdate
Slightly improve the name of the enum. Note that although this is on public Query it's only internally used.
@Ryszard-Trojnacki Ryszard-Trojnacki merged commit 40a4546 into Ryszard-Trojnacki:master Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants