-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
different approach to overriding SQL in annotations #4607
Conversation
Note, with this new annotation, you can write things like: @Entity(name = "Person")
@Check(constraints = "code > 0")
@ForDialect(dialect = H2Dialect.class,
check = @Check(constraints = "sign(code) = 1"))
public static class Person { ... } |
f052b8c
to
543e3f1
Compare
3b34fbc
to
8728824
Compare
ea3a9c8
to
6989bf3
Compare
6989bf3
to
1f9bf25
Compare
1f9bf25
to
7606c3b
Compare
7606c3b
to
2be085f
Compare
Does anyone know what's up with MySQL and Maria? Why they keep timing out? |
Can you rebase? I fixed the hanging yesterday evening. |
for overriding certain mapping annotations that specify native SQL
2be085f
to
1e55447
Compare
1e55447
to
f667e5a
Compare
Thanks, that worked. |
I have merged this. It's marked |
Introduces the
@ForDialect
annotation, which is really a perfectly elegant thing if you're careful not to look at its implementation.This approach has the advantage that it doesn't impact the existing annotations at all: it's completely self-contained.
See #4528.