Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-6241

Allow Hibernate ORM and Hibernate Reactive to be used in the same application

XMLWordPrintable

      I've added a test to verify the compatibility of both the extensions together.

      This is not a big refactor as both extensions are still coupled together, but this lets users use both implementation in their Quarkus application.

      The idea is to have a MultiplePersistenceProviderResolver https://github.com/quarkusio/quarkus/compare/main...lucamolteni:13425-ter?expand=1#diff-c1c6c402fc142de3b1c4d726cb080f2b856cf560b693a1686f52ad3a35a972f0R10

      And filter the correct one at runtime

      https://github.com/quarkusio/quarkus/compare/main...lucamolteni:13425-ter?expand=1#diff-db8c5c1b299098a43c5d8e4b3f3267e4bb72c6e7841536d9bbb487dcff8c54ffR88

      There's also a new ReactivePersistenceUnit annotation https://github.com/quarkusio/quarkus/compare/main...lucamolteni:13425-ter?expand=1#diff-8c10ee8583155144d5c9f796e33b785471701a346c768b2f707fe3a036f0590dR24 in order to disambiguate the correct bean to be injected.

      I've also changed the default name for the reactive persistence unit as there are effectively two together and they can't share the same name.

      Connection strings are in two different fields so they don't collide
      https://github.com/quarkusio/quarkus/compare/main...lucamolteni:13425-ter?expand=1#diff-6dd4fdea2c39574c084d9b03d106b6dd15b4877db728858cebf88641216bcd72R13

      Feedbacks are welcome

              Unassigned Unassigned
              blafond Barry LaFond
              Michal Vavrik Michal Vavrik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: