...

/

Solution: Quarkus Data

Solution: Quarkus Data

Go over the solution for the Quarkus Data challenge.

Solution

For the below solution, we used the following Quarkus extensions:

  • RESTEasy
  • RESTEasy Jackson
  • Panache Hibernate
  • Panache MongoDB
package io.educative;

import io.quarkus.test.junit.QuarkusIntegrationTest;

@QuarkusIntegrationTest
public class GreetingResourceIT extends GreetingResourceTest {
    // Execute the same tests but in packaged mode.
}
Quarkus data challenge solution

In the above code, to access the databases, we defined different classes depending on the use case.

Note: In the solution, we used both active record and ...