-
Is it possible to write one repository & entity which then can be used for both MongoDB & Hibernate supported databases? I thought that I had it working with adding both the I also tried using Hibernate Reactive (because Vertx has a driver for JDBC and MongoDB) but couldn't get it to work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to have separate repositories that are annotated MongoRepository and Repository, they can extend some common one to have shared code. |
Beta Was this translation helpful? Give feedback.
You need to have separate repositories that are annotated MongoRepository and Repository, they can extend some common one to have shared code.