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

override beforeExecuteQuery or add default where #911

Open
steelxt opened this issue Mar 13, 2020 · 0 comments
Open

override beforeExecuteQuery or add default where #911

steelxt opened this issue Mar 13, 2020 · 0 comments

Comments

@steelxt
Copy link

steelxt commented Mar 13, 2020

Hi is there a way to add default where on specific field?

I want to filter out records based on boolean field:

abstract class A{
@get:Key
  @get:Generated
    val id: Long

    var active:Boolean=false
}

and I don't want to add where(A::active.eq(true)) to all queries on A

thanks in advance.

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

No branches or pull requests

1 participant