Ebean ignores deleted flag when using @OneToOne and find method

75 views
Skip to first unread message

Eiki

unread,
Sep 11, 2023, 1:34:59 AM9/11/23
to Ebean ORM
Hi Rob,

I have been using Ebean and noticed that there are cases where the deleted flag is not being considered.
In our project, we utilize the Query#findCount method,
and it appears that the deleted flag may not be taken into account depending on how the entities are related to each other.

To provide more context, I've created some test code in my GitHub repository at https://github.com/eikigithub/examples/compare/master...mytest to demonstrate the issue.

The issue occurred in the following environment:
* Windows 10
* Ebean 13.11.0 (The latest version, 13.22.0, also reproduces the problem.)
* Eclipse 2023-06
And my test project setting is:
* pom.xml
** tiles-maven-plugin 2.33 -> 2.35
* application-test.yml
** useDocker: false

I apologize if there are any confusing points in my message or if my English is not perfect. GitHub and English are still unfamiliar to me.

Thank you for taking the time to review this.

Best regards, Eiki

Rob Bygrave

unread,
Dec 5, 2023, 5:11:11 AM12/5/23
to Ebean ORM

Did you log this as a GitHub issue or has this not been looked at?  Do you still have this issue?

With softDelete there is query.setIncludeSoftDeletes() to indicate that the query should execute and include soft deleted rows.  I'll try to have a look at your example sometime.

Cheers, Rob.

高橋永妃

unread,
Dec 8, 2023, 4:04:38 AM12/8/23
to eb...@googlegroups.com
Hi, Rob.

I would like to clarify that I am the owner of the GitHub posting account.

Thank you very much for your fix!
The other day, I replied at ebean-orm/examples/issues/10,
but maybe I should comment on pull request #3240.
I'm pleased to inform you that the issue has been successfully resolved in our project.

Sincerely Yours, Eiki.

2023年12月5日(火) 19:11 Rob Bygrave <robin....@gmail.com>:
--

---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ebean/7d50a37a-96cf-4c12-98fb-53529a840d01n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages