Replies: 1 comment
-
We (Cargurus) use annotations We seldom use |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I need to work with multiple databases, and their tables are different. Currently, all Entities/Tables can be mistakenly used by any database. I was thinking of one solution for us:
but Database isn't an interface nor open, so it can't be derived from... are there any other suggested solutions to this problem?
By the way, this kind of possibility would also be useful for dependency injection... instead of using
@Named()
(in Micronaut, but also applies to other frameworks), we could inject the right db straight away.Beta Was this translation helpful? Give feedback.
All reactions